mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
check I2NP messages fro expiration
This commit is contained in:
parent
eb2d68fc28
commit
9611f80a39
5 changed files with 22 additions and 3 deletions
|
@ -225,6 +225,11 @@ namespace tunnel
|
|||
|
||||
void TunnelEndpoint::HandleNextMessage (const TunnelMessageBlock& msg)
|
||||
{
|
||||
if (msg.data->IsExpired ())
|
||||
{
|
||||
LogPrint (eLogInfo, "TunnelMessage: message expired");
|
||||
return;
|
||||
}
|
||||
auto typeID = msg.data->GetTypeID ();
|
||||
LogPrint (eLogDebug, "TunnelMessage: handle fragment of ", msg.data->GetLength (), " bytes, msg type ", (int)typeID);
|
||||
switch (msg.deliveryType)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue