ignore LeaseSets coming from transit tunnels

This commit is contained in:
orignal 2016-01-04 19:56:46 -05:00
parent 727436e1cf
commit a26c5f85c3
4 changed files with 10 additions and 3 deletions

View file

@ -486,7 +486,7 @@ namespace tunnel
auto typeID = msg->GetTypeID ();
LogPrint (eLogDebug, "TunnelGateway of ", (int)len, " bytes for tunnel ", tunnel->GetTunnelID (), ". Msg type ", (int)typeID);
if (typeID == eI2NPDatabaseStore || typeID == eI2NPDatabaseSearchReply)
if (IsRouterInfoMsg (msg) || typeID == eI2NPDatabaseSearchReply)
// transit DatabaseStore my contain new/updated RI
// or DatabaseSearchReply with new routers
i2p::data::netdb.PostI2NPMsg (msg);