I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 9700f30c authored by zzz's avatar zzz
Browse files

Tunnels: Disallow changing allowZeroHop setting for exploratory

parent a38bd0b5
No related branches found
No related tags found
No related merge requests found
...@@ -244,9 +244,10 @@ public class TunnelPoolSettings { ...@@ -244,9 +244,10 @@ public class TunnelPoolSettings {
String name = (String) e.getKey(); String name = (String) e.getKey();
String value = (String) e.getValue(); String value = (String) e.getValue();
if (name.startsWith(prefix)) { if (name.startsWith(prefix)) {
if (name.equalsIgnoreCase(prefix + PROP_ALLOW_ZERO_HOP)) if (name.equalsIgnoreCase(prefix + PROP_ALLOW_ZERO_HOP)) {
_allowZeroHop = getBoolean(value, DEFAULT_ALLOW_ZERO_HOP); if (!_isExploratory)
else if (name.equalsIgnoreCase(prefix + PROP_BACKUP_QUANTITY)) _allowZeroHop = getBoolean(value, DEFAULT_ALLOW_ZERO_HOP);
} else if (name.equalsIgnoreCase(prefix + PROP_BACKUP_QUANTITY))
_backupQuantity = getInt(value, DEFAULT_BACKUP_QUANTITY); _backupQuantity = getInt(value, DEFAULT_BACKUP_QUANTITY);
//else if (name.equalsIgnoreCase(prefix + PROP_DURATION)) //else if (name.equalsIgnoreCase(prefix + PROP_DURATION))
// _duration = getInt(value, DEFAULT_DURATION); // _duration = getInt(value, DEFAULT_DURATION);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment