mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
random pick tunnels
This commit is contained in:
parent
c025bcfdfc
commit
e50377e557
2 changed files with 13 additions and 3 deletions
|
@ -273,7 +273,7 @@ namespace tunnel
|
|||
OutboundTunnel * tunnel = nullptr;
|
||||
for (auto it: m_OutboundTunnels)
|
||||
{
|
||||
if (i >= ind) return it;
|
||||
if (i >= ind) break;
|
||||
if (it->IsEstablished ())
|
||||
{
|
||||
tunnel = it;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue