mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-05-12 14:34:54 +00:00
Tunnels: Disallow changing allowZeroHop setting for exploratory
This commit is contained in:
@@ -244,9 +244,10 @@ public class TunnelPoolSettings {
|
||||
String name = (String) e.getKey();
|
||||
String value = (String) e.getValue();
|
||||
if (name.startsWith(prefix)) {
|
||||
if (name.equalsIgnoreCase(prefix + PROP_ALLOW_ZERO_HOP))
|
||||
_allowZeroHop = getBoolean(value, DEFAULT_ALLOW_ZERO_HOP);
|
||||
else if (name.equalsIgnoreCase(prefix + PROP_BACKUP_QUANTITY))
|
||||
if (name.equalsIgnoreCase(prefix + PROP_ALLOW_ZERO_HOP)) {
|
||||
if (!_isExploratory)
|
||||
_allowZeroHop = getBoolean(value, DEFAULT_ALLOW_ZERO_HOP);
|
||||
} else if (name.equalsIgnoreCase(prefix + PROP_BACKUP_QUANTITY))
|
||||
_backupQuantity = getInt(value, DEFAULT_BACKUP_QUANTITY);
|
||||
//else if (name.equalsIgnoreCase(prefix + PROP_DURATION))
|
||||
// _duration = getInt(value, DEFAULT_DURATION);
|
||||
|
||||
Reference in New Issue
Block a user