Browse Source

start other acceptors if connected through a proxy

pull/1640/head
orignal 3 years ago
parent
commit
ad22247c9e
  1. 5
      libi2pd/NTCP2.cpp

5
libi2pd/NTCP2.cpp

@ -1158,13 +1158,13 @@ namespace transport @@ -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 @@ -1209,7 +1209,6 @@ namespace transport
}
}
}
}
ScheduleTermination ();
}
}

Loading…
Cancel
Save