Browse Source

try shooting in the dark for workarround

pull/557/head
Jeff Becker 8 years ago
parent
commit
34a90f442e
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
  1. 8
      Garlic.cpp

8
Garlic.cpp

@ -517,13 +517,17 @@ 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);
tunnel->SendTunnelDataMsg (gwHash, gwTunnel, msg); tunnel->SendTunnelDataMsg (gwHash, gwTunnel, msg);
} }
else else
LogPrint (eLogWarning, "Garlic: No outbound tunnels available for garlic clove given tunnelID=", gwTunnel); LogPrint (eLogWarning, "Garlic: No outbound tunnels available for garlic clove given tunnelID=", gwTunnel);
break; break;
} }
case eGarlicDeliveryTypeRouter: case eGarlicDeliveryTypeRouter:

Loading…
Cancel
Save