mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 10:12:25 +00:00
don't handle RelayRequest came from non-established session
This commit is contained in:
1 parent
ec19bfb55d
commit
452da43bbe
1 file changed
+5
@@ -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