mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-20 16:43:07 +00:00
don't handle RelayRequest came from non-established session
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user