|
|
@ -667,9 +667,12 @@ namespace transport |
|
|
|
excluded.insert (i2p::context.GetIdentHash ()); |
|
|
|
excluded.insert (i2p::context.GetIdentHash ()); |
|
|
|
auto router = i2p::data::netdb.GetRandomSSU2PeerTestRouter (true, excluded); // v4
|
|
|
|
auto router = i2p::data::netdb.GetRandomSSU2PeerTestRouter (true, excluded); // v4
|
|
|
|
if (router) |
|
|
|
if (router) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
i2p::context.SetStatusSSU2 (eRouterStatusTesting); |
|
|
|
m_SSU2Server->StartPeerTest (router, true); |
|
|
|
m_SSU2Server->StartPeerTest (router, true); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
if (ipv6 && i2p::context.SupportsV6 ()) |
|
|
|
if (ipv6 && i2p::context.SupportsV6 ()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
LogPrint (eLogInfo, "Transports: Started peer test IPv6"); |
|
|
|
LogPrint (eLogInfo, "Transports: Started peer test IPv6"); |
|
|
@ -707,10 +710,13 @@ namespace transport |
|
|
|
excluded.insert (i2p::context.GetIdentHash ()); |
|
|
|
excluded.insert (i2p::context.GetIdentHash ()); |
|
|
|
auto router = i2p::data::netdb.GetRandomSSU2PeerTestRouter (false, excluded); // v6
|
|
|
|
auto router = i2p::data::netdb.GetRandomSSU2PeerTestRouter (false, excluded); // v6
|
|
|
|
if (router) |
|
|
|
if (router) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
i2p::context.SetStatusV6SSU2 (eRouterStatusTesting); |
|
|
|
m_SSU2Server->StartPeerTest (router, false); |
|
|
|
m_SSU2Server->StartPeerTest (router, false); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
std::shared_ptr<i2p::crypto::X25519Keys> Transports::GetNextX25519KeysPair () |
|
|
|
std::shared_ptr<i2p::crypto::X25519Keys> Transports::GetNextX25519KeysPair () |
|
|
|
{ |
|
|
|
{ |
|
|
|