forked from I2P_Developers/i2p.i2p
Console: Fix changes to wrong tunnel on /configtunnels (ticket #2227)
This commit is contained in:
@ -76,7 +76,13 @@ public class ConfigTunnelsHandler extends FormHandler {
|
||||
continue;
|
||||
}
|
||||
|
||||
in.setLength(getInt(_settings.get(index + ".depthInbound")));
|
||||
Object di = _settings.get(index + ".depthInbound");
|
||||
if (di == null) {
|
||||
// aliased pools
|
||||
index++;
|
||||
continue;
|
||||
}
|
||||
in.setLength(getInt(di));
|
||||
out.setLength(getInt(_settings.get(index + ".depthOutbound")));
|
||||
in.setLengthVariance(getInt(_settings.get(index + ".varianceInbound")));
|
||||
out.setLengthVariance(getInt(_settings.get(index + ".varianceOutbound")));
|
||||
|
@ -40,8 +40,10 @@ public class ConfigTunnelsHelper extends HelperBase {
|
||||
TunnelPoolSettings out = _context.tunnelManager().getOutboundSettings(dest.calculateHash());
|
||||
|
||||
if (in == null || in.getAliasOf() != null ||
|
||||
out == null || out.getAliasOf() != null)
|
||||
out == null || out.getAliasOf() != null) {
|
||||
cur++;
|
||||
continue;
|
||||
}
|
||||
|
||||
String name = in.getDestinationNickname();
|
||||
if (name == null)
|
||||
|
Reference in New Issue
Block a user