|
|
@ -665,11 +665,16 @@ namespace transport |
|
|
|
{ |
|
|
|
{ |
|
|
|
excluded.clear (); |
|
|
|
excluded.clear (); |
|
|
|
excluded.insert (i2p::context.GetIdentHash ()); |
|
|
|
excluded.insert (i2p::context.GetIdentHash ()); |
|
|
|
auto router = i2p::data::netdb.GetRandomSSU2PeerTestRouter (true, excluded); // v4
|
|
|
|
for (int i = 0; i < 3; i++) |
|
|
|
if (router) |
|
|
|
{ |
|
|
|
{ |
|
|
|
auto router = i2p::data::netdb.GetRandomSSU2PeerTestRouter (true, excluded); // v4
|
|
|
|
i2p::context.SetStatusSSU2 (eRouterStatusTesting); |
|
|
|
if (router) |
|
|
|
m_SSU2Server->StartPeerTest (router, true); |
|
|
|
{ |
|
|
|
|
|
|
|
if (i2p::context.GetStatus () != eRouterStatusTesting) |
|
|
|
|
|
|
|
i2p::context.SetStatusSSU2 (eRouterStatusTesting); |
|
|
|
|
|
|
|
m_SSU2Server->StartPeerTest (router, true); |
|
|
|
|
|
|
|
excluded.insert (router->GetIdentHash ()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -708,11 +713,16 @@ namespace transport |
|
|
|
{ |
|
|
|
{ |
|
|
|
excluded.clear (); |
|
|
|
excluded.clear (); |
|
|
|
excluded.insert (i2p::context.GetIdentHash ()); |
|
|
|
excluded.insert (i2p::context.GetIdentHash ()); |
|
|
|
auto router = i2p::data::netdb.GetRandomSSU2PeerTestRouter (false, excluded); // v6
|
|
|
|
for (int i = 0; i < 3; i++) |
|
|
|
if (router) |
|
|
|
{ |
|
|
|
{ |
|
|
|
auto router = i2p::data::netdb.GetRandomSSU2PeerTestRouter (false, excluded); // v6
|
|
|
|
i2p::context.SetStatusV6SSU2 (eRouterStatusTesting); |
|
|
|
if (router) |
|
|
|
m_SSU2Server->StartPeerTest (router, false); |
|
|
|
{ |
|
|
|
|
|
|
|
if (i2p::context.GetStatusV6 () != eRouterStatusTesting) |
|
|
|
|
|
|
|
i2p::context.SetStatusV6SSU2 (eRouterStatusTesting); |
|
|
|
|
|
|
|
m_SSU2Server->StartPeerTest (router, false); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
excluded.insert (router->GetIdentHash ()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|