|
|
@ -237,6 +237,11 @@ namespace tunnel |
|
|
|
} |
|
|
|
} |
|
|
|
auto typeID = msg.data->GetTypeID (); |
|
|
|
auto 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 ((IsRouterInfoMsg (msg.data) || typeID == eI2NPDatabaseSearchReply) && |
|
|
|
|
|
|
|
!m_IsInbound && msg.deliveryType != eDeliveryTypeLocal) |
|
|
|
|
|
|
|
i2p::data::netdb.PostI2NPMsg (CopyI2NPMessage (msg.data)); |
|
|
|
|
|
|
|
|
|
|
|
switch (msg.deliveryType) |
|
|
|
switch (msg.deliveryType) |
|
|
|
{ |
|
|
|
{ |
|
|
|
case eDeliveryTypeLocal: |
|
|
|
case eDeliveryTypeLocal: |
|
|
@ -257,10 +262,6 @@ namespace tunnel |
|
|
|
default: |
|
|
|
default: |
|
|
|
LogPrint (eLogError, "TunnelMessage: Unknown delivery type ", (int)msg.deliveryType); |
|
|
|
LogPrint (eLogError, "TunnelMessage: Unknown delivery type ", (int)msg.deliveryType); |
|
|
|
}; |
|
|
|
}; |
|
|
|
// catch RI or reply with new list of routers
|
|
|
|
|
|
|
|
if ((IsRouterInfoMsg (msg.data) || typeID == eI2NPDatabaseSearchReply) && |
|
|
|
|
|
|
|
!m_IsInbound && msg.deliveryType != eDeliveryTypeLocal) |
|
|
|
|
|
|
|
i2p::data::netdb.PostI2NPMsg (msg.data); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|