forked from I2P_Developers/i2p.i2p
OCMOSJ: Pick a OB tunnel at random, not with the OBEP closest
to the lease, as that may be reducing the odds of trying a different path and hurting connection reliability. While the change may slightly increase connection congestion, if it helps with reliability then it's worth it.
This commit is contained in:
@ -18,7 +18,7 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Monotone";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 18;
|
||||
public final static long BUILD = 19;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
|
@ -727,8 +727,10 @@ public class OutboundClientMessageOneShotJob extends JobImpl {
|
||||
* Anonymity issues?
|
||||
*/
|
||||
private TunnelInfo selectOutboundTunnel() {
|
||||
Hash gw = _lease.getGateway();
|
||||
return getContext().tunnelManager().selectOutboundTunnel(_from.calculateHash(), gw);
|
||||
// hurts reliability? let's try picking at random again
|
||||
//Hash gw = _lease.getGateway();
|
||||
//return getContext().tunnelManager().selectOutboundTunnel(_from.calculateHash(), gw);
|
||||
return getContext().tunnelManager().selectOutboundTunnel(_from.calculateHash());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user