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:
parent
8fd466c5a9
commit
f378119889
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user