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

Skip to content
Snippets Groups Projects
Commit 10ed266d authored by str4d's avatar str4d
Browse files

Clarify property inversion

parent bccfe03b
No related branches found
No related tags found
No related merge requests found
...@@ -154,11 +154,8 @@ public abstract class Util { ...@@ -154,11 +154,8 @@ public abstract class Util {
x.equals("i2cp.disableInterface")) { x.equals("i2cp.disableInterface")) {
// special exception, we must invert the bool for these properties only. // special exception, we must invert the bool for these properties only.
String string = all.get(x).toString(); String string = all.get(x).toString();
String what="true"; String inverted = Boolean.toString(!Boolean.parseBoolean(string));
if(string.equals(what)) { routerProps.setProperty(x, inverted);
what="false";
}
routerProps.setProperty(x, what);
} else { } else {
String string = all.get(x).toString(); String string = all.get(x).toString();
routerProps.setProperty(x, string); routerProps.setProperty(x, string);
......
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