don't handle RelayRequest and RelayIntro with same nonce twice

This commit is contained in:
orignal 2024-10-27 11:55:10 -04:00
parent 7461b640e3
commit 608056dcd2
3 changed files with 33 additions and 23 deletions

View file

@ -477,7 +477,7 @@ namespace transport
HandleReceivedPackets (std::move (receivedPackets));
}
void SSU2Server::AddSession (std::shared_ptr<SSU2Session> session)
bool SSU2Server::AddSession (std::shared_ptr<SSU2Session> session)
{
if (session)
{
@ -485,8 +485,10 @@ namespace transport
{
if (session->GetState () != eSSU2SessionStatePeerTest)
AddSessionByRouterHash (session);
return true;
}
}
return false;
}
void SSU2Server::RemoveSession (uint64_t connID)