Skip to content

Commit

Permalink
try peer test again if Unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Sep 28, 2023
1 parent bb3ae8f commit efdbe26
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libi2pd/Transports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -833,8 +833,12 @@ namespace transport
}
}
bool ipv4Testing = i2p::context.GetTesting ();
if (!ipv4Testing)
ipv4Testing = i2p::context.GetRouterInfo ().IsSSU2V4 () && (i2p::context.GetStatus() == eRouterStatusUnknown);
bool ipv6Testing = i2p::context.GetTestingV6 ();
// if still testing, repeat peer test
if (!ipv6Testing)
ipv6Testing = i2p::context.GetRouterInfo ().IsSSU2V6 () && (i2p::context.GetStatusV6() == eRouterStatusUnknown);
// if still testing or unknown, repeat peer test
if (ipv4Testing || ipv6Testing)
PeerTest (ipv4Testing, ipv6Testing);
m_PeerCleanupTimer->expires_from_now (boost::posix_time::seconds(3 * SESSION_CREATION_TIMEOUT));
Expand Down

0 comments on commit efdbe26

Please sign in to comment.