fix overwriting of custom nickname

pull/5/head
Zlatin Balevsky 2019-06-14 16:20:21 +01:00
parent 2a315dd734
commit 2e52dd5c49
1 changed files with 2 additions and 2 deletions

View File

@ -92,9 +92,9 @@ public class Core {
if (i2pOptionsFile.exists()) {
i2pOptionsFile.withInputStream { i2pOptions.load(it) }
if (!i2pOptions.hasProperty("inbound.nickname"))
if (!i2pOptions.containsKey("inbound.nickname"))
i2pOptions["inbound.nickname"] = "MuWire"
if (!i2pOptions.hasProperty("outbound.nickname"))
if (!i2pOptions.containsKey("outbound.nickname"))
i2pOptions["outbound.nickname"] = "MuWire"
} else {
i2pOptions["inbound.nickname"] = "MuWire"