Browse Source

send reply to DatabaseLookup through exploratory pool or directly only

pull/93/head
orignal 10 years ago
parent
commit
a096a3931d
  1. 9
      NetDb.cpp

9
NetDb.cpp

@ -656,10 +656,15 @@ namespace data @@ -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…
Cancel
Save