Browse Source

5 SSU2 peer tests if no SSU

pull/1791/head
orignal 2 years ago
parent
commit
f378119889
  1. 6
      libi2pd/Transports.cpp

6
libi2pd/Transports.cpp

@ -665,7 +665,8 @@ namespace transport
{ {
excluded.clear (); excluded.clear ();
excluded.insert (i2p::context.GetIdentHash ()); excluded.insert (i2p::context.GetIdentHash ());
for (int i = 0; i < 3; i++) int numTests = m_SSUServer ? 3 : 5;
for (int i = 0; i < numTests; i++)
{ {
auto router = i2p::data::netdb.GetRandomSSU2PeerTestRouter (true, excluded); // v4 auto router = i2p::data::netdb.GetRandomSSU2PeerTestRouter (true, excluded); // v4
if (router) if (router)
@ -713,7 +714,8 @@ namespace transport
{ {
excluded.clear (); excluded.clear ();
excluded.insert (i2p::context.GetIdentHash ()); excluded.insert (i2p::context.GetIdentHash ());
for (int i = 0; i < 3; i++) int numTests = m_SSUServer ? 3 : 5;
for (int i = 0; i < numTests; i++)
{ {
auto router = i2p::data::netdb.GetRandomSSU2PeerTestRouter (false, excluded); // v6 auto router = i2p::data::netdb.GetRandomSSU2PeerTestRouter (false, excluded); // v6
if (router) if (router)

Loading…
Cancel
Save