Console: Fix changes to wrong tunnel on /configtunnels (ticket #2227)

This commit is contained in:
zzz
2018-05-25 17:35:29 +00:00
parent 195a2d0473
commit 2fab97fb20
4 changed files with 15 additions and 4 deletions

View File

@ -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")));

View File

@ -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)