1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 08:14:15 +00:00

connect to reachable introducers only

This commit is contained in:
orignal 2022-05-06 19:38:48 -04:00
parent 1a1871e8cd
commit da3f3ccac9

View File

@ -1949,7 +1949,7 @@ namespace transport
for (auto& it: address->ssu->introducers) for (auto& it: address->ssu->introducers)
{ {
r = i2p::data::netdb.FindRouter (it.iKey); r = i2p::data::netdb.FindRouter (it.iKey);
if (r) if (r && r->IsReachableFrom (i2p::context.GetRouterInfo ()))
{ {
relayTag = it.iTag; relayTag = it.iTag;
if (relayTag) break; if (relayTag) break;