mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
don't pick same session for PeerTest msg 2
This commit is contained in:
parent
baf74cb582
commit
463ed12ce8
3 changed files with 10 additions and 5 deletions
|
@ -1495,7 +1495,8 @@ namespace transport
|
|||
{
|
||||
case 1: // Bob from Alice
|
||||
{
|
||||
auto session = m_Server.GetRandomSession ((buf[12] == 6) ? i2p::data::RouterInfo::eSSU2V4 : i2p::data::RouterInfo::eSSU2V6);
|
||||
auto session = m_Server.GetRandomSession ((buf[12] == 6) ? i2p::data::RouterInfo::eSSU2V4 : i2p::data::RouterInfo::eSSU2V6,
|
||||
GetRemoteIdentity ()->GetIdentHash ());
|
||||
if (session) // session with Charlie
|
||||
{
|
||||
session->m_PeerTests.emplace (nonce, std::make_pair (shared_from_this (), i2p::util::GetSecondsSinceEpoch ()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue