mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 21:37:17 +01:00
send reply to DatabaseLookup through exploratory pool or directly only
This commit is contained in:
parent
8c87a0fc38
commit
a096a3931d
|
@ -656,10 +656,15 @@ namespace data
|
|||
replyMsg = garlic.WrapSingleMessage (replyMsg, nullptr);
|
||||
}
|
||||
}
|
||||
i2p::tunnel::tunnels.GetNextOutboundTunnel ()->SendTunnelDataMsg (buf+32, replyTunnelID, replyMsg);
|
||||
auto exploratoryPool = i2p::tunnel::tunnels.GetExploratoryPool ();
|
||||
auto outbound = exploratoryPool ? exploratoryPool->GetNextOutboundTunnel () : nullptr;
|
||||
if (outbound)
|
||||
outbound->SendTunnelDataMsg (buf+32, replyTunnelID, replyMsg);
|
||||
else
|
||||
i2p::transports.SendMessage (buf+32, i2p::CreateTunnelGatewayMsg (replyTunnelID, replyMsg));
|
||||
}
|
||||
else
|
||||
i2p::transports.SendMessage (buf, replyMsg);
|
||||
i2p::transports.SendMessage (buf+32, replyMsg);
|
||||
}
|
||||
i2p::DeleteI2NPMessage (msg);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue