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)

View File

@ -1,3 +1,6 @@
2018-05-25 zzz
* Console: Fix changes to wrong tunnel on /configtunnels (ticket #2227)
2018-05-06 meeh
* launchers:
- rewritten some logic
@ -11,7 +14,7 @@
2018-05-05 zzz
* i2ptunnel:
- Link to SSL wizard
- Link to SSL wizard (ticket #2159)
- Enable SSL to i2p hosts by default
* Streaming: Don't send HTTP response on an HTTPS connection

View File

@ -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 = 9;
public final static long BUILD = 10;
/** for example "-test" */
public final static String EXTRA = "";