mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 11:04:00 +01:00
don't look for session if a packet is from same endpoint as previous
This commit is contained in:
parent
23907e6cb1
commit
89883e2078
2
SSU.cpp
2
SSU.cpp
|
@ -215,7 +215,7 @@ namespace transport
|
|||
for (auto it1: packets)
|
||||
{
|
||||
auto packet = it1;
|
||||
if (session && session->GetRemoteEndpoint () != packet->from) // we received packet for other session than previous
|
||||
if (!session || session->GetRemoteEndpoint () != packet->from) // we received packet for other session than previous
|
||||
{
|
||||
auto it = m_Sessions.find (packet->from);
|
||||
if (it != m_Sessions.end ())
|
||||
|
|
Loading…
Reference in a new issue