mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
drop incoming garlic messages if local destination doesn't exist anymore
This commit is contained in:
@@ -562,8 +562,16 @@ namespace i2p
|
|||||||
break;
|
break;
|
||||||
case eI2NPGarlic:
|
case eI2NPGarlic:
|
||||||
LogPrint ("Garlic");
|
LogPrint ("Garlic");
|
||||||
if (msg->from && msg->from->GetTunnelPool ())
|
if (msg->from)
|
||||||
msg->from->GetTunnelPool ()->ProcessGarlicMessage (msg);
|
{
|
||||||
|
if (msg->from->GetTunnelPool ())
|
||||||
|
msg->from->GetTunnelPool ()->ProcessGarlicMessage (msg);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
LogPrint (eLogInfo, "Local destination for garlic doesn't exist anymore");
|
||||||
|
DeleteI2NPMessage (msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
i2p::context.ProcessGarlicMessage (msg);
|
i2p::context.ProcessGarlicMessage (msg);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user