|
|
|
@ -331,6 +331,7 @@ namespace tunnel
@@ -331,6 +331,7 @@ namespace tunnel
|
|
|
|
|
if (m_ExplicitPeers) return SelectExplicitPeers (peers, isInbound); |
|
|
|
|
auto prevHop = i2p::context.GetSharedRouterInfo (); |
|
|
|
|
int numHops = isInbound ? m_NumInboundHops : m_NumOutboundHops; |
|
|
|
|
#ifndef MESHNET |
|
|
|
|
if (i2p::transport::transports.GetNumPeers () > 25) |
|
|
|
|
{ |
|
|
|
|
auto r = i2p::transport::transports.GetRandomPeer (); |
|
|
|
@ -341,7 +342,7 @@ namespace tunnel
@@ -341,7 +342,7 @@ namespace tunnel
|
|
|
|
|
numHops--; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
|
for (int i = 0; i < numHops; i++) |
|
|
|
|
{ |
|
|
|
|
auto hop = SelectNextHop (prevHop); |
|
|
|
|