mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 11:04:00 +01:00
start other acceptors if connected through a proxy
This commit is contained in:
parent
f38920c338
commit
ad22247c9e
|
@ -1158,13 +1158,13 @@ namespace transport
|
|||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
LogPrint(eLogInfo, "NTCP2: Proxy is not used");
|
||||
// start acceptors
|
||||
auto& addresses = context.GetRouterInfo ().GetAddresses ();
|
||||
for (const auto& address: addresses)
|
||||
{
|
||||
if (!address) continue;
|
||||
if (address->IsPublishedNTCP2 ())
|
||||
if (address->IsPublishedNTCP2 () && address->port)
|
||||
{
|
||||
if (address->host.is_v4())
|
||||
{
|
||||
|
@ -1209,7 +1209,6 @@ namespace transport
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
ScheduleTermination ();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue