Browse Source

don't print warning if duplicated nonce or peer test

gha
orignal 2 months ago
parent
commit
0f5e8d8424
  1. 8
      libi2pd/SSU2Session.cpp

8
libi2pd/SSU2Session.cpp

@ -2127,14 +2127,14 @@ namespace transport
} }
else else
{ {
LogPrint (eLogInfo, "SSU2: RelayResponse status code=", (int)buf[1]); LogPrint (eLogInfo, "SSU2: RelayResponse status code=", (int)buf[1], " nonce=", bufbe32toh (buf + 2));
it->second.first->Done (); it->second.first->Done ();
} }
} }
m_RelaySessions.erase (it); m_RelaySessions.erase (it);
} }
else else
LogPrint (eLogWarning, "SSU2: RelayResponse unknown nonce ", bufbe32toh (buf + 2)); LogPrint (eLogDebug, "SSU2: RelayResponse unknown nonce ", bufbe32toh (buf + 2));
} }
void SSU2Session::HandlePeerTest (const uint8_t * buf, size_t len) void SSU2Session::HandlePeerTest (const uint8_t * buf, size_t len)
@ -2294,7 +2294,7 @@ namespace transport
aliceSession->m_SentPackets.emplace (packetNum, packet); aliceSession->m_SentPackets.emplace (packetNum, packet);
} }
else else
LogPrint (eLogWarning, "SSU2: Unknown peer test 3 nonce ", nonce); LogPrint (eLogDebug, "SSU2: Unknown peer test 3 nonce ", nonce);
break; break;
} }
case 4: // Alice from Bob case 4: // Alice from Bob
@ -2382,7 +2382,7 @@ namespace transport
} }
} }
else else
LogPrint (eLogWarning, "SSU2: Unknown peer test 4 nonce ", nonce); LogPrint (eLogDebug, "SSU2: Unknown peer test 4 nonce ", nonce);
break; break;
} }
default: default:

Loading…
Cancel
Save