1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 16:34:13 +00:00

correct outbound tunnel selection

This commit is contained in:
orignal 2016-09-25 17:23:21 -04:00
parent e5e09c9b51
commit b03712a30e

View File

@ -109,7 +109,7 @@ namespace client
} }
else else
{ {
auto outboundTunnel = GetTunnelPool ()->GetNextOutboundTunnel (); outboundTunnel = GetTunnelPool ()->GetNextOutboundTunnel ();
auto leases = remote->GetNonExpiredLeases (); auto leases = remote->GetNonExpiredLeases ();
if (!leases.empty ()) if (!leases.empty ())
remoteLease = leases[rand () % leases.size ()]; remoteLease = leases[rand () % leases.size ()];