mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-09 15:50:26 +03:00
don't catch RouterInfo at OBEP
This commit is contained in:
parent
1bd6390f78
commit
c1168c2aa0
@ -323,20 +323,7 @@ namespace tunnel
|
|||||||
}
|
}
|
||||||
uint8_t typeID = msg.data->GetTypeID ();
|
uint8_t typeID = msg.data->GetTypeID ();
|
||||||
LogPrint (eLogDebug, "TunnelMessage: Handle fragment of ", msg.data->GetLength (), " bytes, msg type ", (int)typeID);
|
LogPrint (eLogDebug, "TunnelMessage: Handle fragment of ", msg.data->GetLength (), " bytes, msg type ", (int)typeID);
|
||||||
// catch RI or reply with new list of routers
|
|
||||||
if (!m_IsInbound && msg.deliveryType != eDeliveryTypeLocal)
|
|
||||||
{
|
|
||||||
if (typeID == eI2NPDatabaseSearchReply)
|
|
||||||
i2p::data::netdb.PostI2NPMsg (CopyI2NPMessage (msg.data));
|
|
||||||
else if (IsRouterInfoMsg (msg.data))
|
|
||||||
{
|
|
||||||
auto m = CopyI2NPMessage (msg.data);
|
|
||||||
if (bufbe32toh (m->GetPayload () + DATABASE_STORE_REPLY_TOKEN_OFFSET))
|
|
||||||
memset (m->GetPayload () + DATABASE_STORE_REPLY_TOKEN_OFFSET, 0xFF, 4); // fake replyToken meaning no reply
|
|
||||||
i2p::data::netdb.PostI2NPMsg (m);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (msg.deliveryType)
|
switch (msg.deliveryType)
|
||||||
{
|
{
|
||||||
case eDeliveryTypeLocal:
|
case eDeliveryTypeLocal:
|
||||||
|
Loading…
Reference in New Issue
Block a user