mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
pick 3 routers for SSU2 peer test
This commit is contained in:
parent
f7e9e6a1c4
commit
83f43ab166
3 changed files with 25 additions and 12 deletions
|
@ -1712,8 +1712,10 @@ namespace transport
|
|||
}
|
||||
else
|
||||
{
|
||||
LogPrint (eLogInfo, "SSU2: Peer test 4 error code ", (int)buf[1]);
|
||||
SetRouterStatus (eRouterStatusUnknown);
|
||||
LogPrint (eLogInfo, "SSU2: Peer test 4 error code ", (int)buf[1], " from ",
|
||||
i2p::data::GetIdentHashAbbreviation (buf[1] < 64 ? GetRemoteIdentity ()->GetIdentHash () : i2p::data::IdentHash (buf + 3)));
|
||||
if (GetRouterStatus () == eRouterStatusTesting)
|
||||
SetRouterStatus (eRouterStatusUnknown);
|
||||
it->second.first->Terminate ();
|
||||
}
|
||||
m_PeerTests.erase (it);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue