don't handle RelayRequest came from non-established session

This commit is contained in:
orignal
2026-10-18 21:21:14 -04:00
parent ec19bfb55d
commit 452da43bbe
+5
View File
@@ -2271,6 +2271,11 @@ namespace transport
{
// we are Bob
if (len < 9) return;
if (!IsEstablished ())
{
LogPrint (eLogWarning, "SSU2: RelayRequest came from non-established session. Dropped");
return;
}
auto mts = i2p::util::GetMillisecondsSinceEpoch ();
uint32_t nonce = bufbe32toh (buf + 1); // nonce
uint32_t relayTag = bufbe32toh (buf + 5); // relay tag