|
|
@ -2162,7 +2162,8 @@ namespace transport |
|
|
|
GetRemoteIdentity ()->GetIdentHash ()); |
|
|
|
GetRemoteIdentity ()->GetIdentHash ()); |
|
|
|
if (session) // session with Charlie
|
|
|
|
if (session) // session with Charlie
|
|
|
|
{ |
|
|
|
{ |
|
|
|
m_Server.AddPeerTest (nonce, shared_from_this (), ts/1000); |
|
|
|
if (m_Server.AddPeerTest (nonce, shared_from_this (), ts/1000)) |
|
|
|
|
|
|
|
{ |
|
|
|
auto packet = m_Server.GetSentPacketsPool ().AcquireShared (); |
|
|
|
auto packet = m_Server.GetSentPacketsPool ().AcquireShared (); |
|
|
|
// Alice's RouterInfo
|
|
|
|
// Alice's RouterInfo
|
|
|
|
auto r = i2p::data::netdb.FindRouter (GetRemoteIdentity ()->GetIdentHash ()); |
|
|
|
auto r = i2p::data::netdb.FindRouter (GetRemoteIdentity ()->GetIdentHash ()); |
|
|
@ -2186,6 +2187,9 @@ namespace transport |
|
|
|
packet->sendTime = ts; |
|
|
|
packet->sendTime = ts; |
|
|
|
session->m_SentPackets.emplace (packetNum, packet); |
|
|
|
session->m_SentPackets.emplace (packetNum, packet); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
LogPrint (eLogInfo, "SSU2: Peer test 1 nonce ", nonce, " already exists. Ignored"); |
|
|
|
|
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Charlie not found, send error back to Alice
|
|
|
|
// Charlie not found, send error back to Alice
|
|
|
|