mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
don't handle RelayRequest and RelayIntro with same nonce twice
This commit is contained in:
parent
7461b640e3
commit
608056dcd2
3 changed files with 33 additions and 23 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue