forked from I2P_Developers/i2p.i2p
Don't exclusively use explicitPeers when specified for testing
This commit is contained in:
@@ -105,7 +105,8 @@ public abstract class TunnelPeerSelector extends ConnectChecker {
|
||||
String peers = opts.getProperty("explicitPeers");
|
||||
if (peers == null)
|
||||
peers = ctx.getProperty("explicitPeers");
|
||||
if (peers != null)
|
||||
// only one out of 4 times so we don't break completely if peer doesn't build one
|
||||
if (peers != null && ctx.random().nextInt(4) == 0)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user