|
|
@ -517,6 +517,10 @@ namespace garlic |
|
|
|
std::shared_ptr<i2p::tunnel::OutboundTunnel> tunnel; |
|
|
|
std::shared_ptr<i2p::tunnel::OutboundTunnel> tunnel; |
|
|
|
if (from && from->GetTunnelPool ()) |
|
|
|
if (from && from->GetTunnelPool ()) |
|
|
|
tunnel = from->GetTunnelPool ()->GetNextOutboundTunnel (); |
|
|
|
tunnel = from->GetTunnelPool ()->GetNextOutboundTunnel (); |
|
|
|
|
|
|
|
if (!tunnel) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
tunnel = i2p::context::GetExploratoryPool()->GetNextOutboundTunnel(); |
|
|
|
|
|
|
|
} |
|
|
|
if (tunnel) // we have send it through an outbound tunnel
|
|
|
|
if (tunnel) // we have send it through an outbound tunnel
|
|
|
|
{ |
|
|
|
{ |
|
|
|
auto msg = CreateI2NPMessage (buf, GetI2NPMessageLength (buf), from); |
|
|
|
auto msg = CreateI2NPMessage (buf, GetI2NPMessageLength (buf), from); |
|
|
|