propagate from branch 'i2p.i2p.zzz.test2' (head 47586aa88408845c51ee4c5fce40c617bdb8e398)

to branch 'i2p.i2p' (head bacb6048bc596f064ff237dd8569014a421b4ef6)
This commit is contained in:
zzz
2015-06-03 11:40:28 +00:00
6 changed files with 23 additions and 8 deletions

View File

@@ -47,7 +47,8 @@ public class TunnelConfig {
private String _i2cpPort;
private int _tunnelDepth = -1;
private int _tunnelQuantity = -1;
private int _tunnelVariance = -1;
// -2 or higher is valid
private int _tunnelVariance = -3;
private int _tunnelBackupQuantity = -1;
private boolean _connectDelay;
private String _customOptions;
@@ -801,7 +802,7 @@ public class TunnelConfig {
config.setProperty("option.inbound.length", Integer.toString(_tunnelDepth));
config.setProperty("option.outbound.length", Integer.toString(_tunnelDepth));
}
if (_tunnelVariance >= 0) {
if (_tunnelVariance >= -2) {
config.setProperty("option.inbound.lengthVariance", Integer.toString(_tunnelVariance));
config.setProperty("option.outbound.lengthVariance", Integer.toString(_tunnelVariance));
}