1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 12:24:19 +00:00

5 SSU2 peer tests if no SSU

This commit is contained in:
orignal 2022-08-29 21:27:02 -04:00
parent 8fd466c5a9
commit f378119889

View File

@ -665,7 +665,8 @@ namespace transport
{
excluded.clear ();
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
if (router)
@ -713,7 +714,8 @@ namespace transport
{
excluded.clear ();
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
if (router)