From e9703a2652bda2291e8122923a0a40878c4f8e1e Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Sat, 8 Jun 2019 07:23:14 +0100 Subject: [PATCH] support for custom i2cp host:port --- core/src/main/groovy/com/muwire/core/Core.groovy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/groovy/com/muwire/core/Core.groovy b/core/src/main/groovy/com/muwire/core/Core.groovy index 402a2373..81bc839d 100644 --- a/core/src/main/groovy/com/muwire/core/Core.groovy +++ b/core/src/main/groovy/com/muwire/core/Core.groovy @@ -90,6 +90,10 @@ public class Core { def i2pOptionsFile = new File(home,"i2p.properties") if (i2pOptionsFile.exists()) { i2pOptionsFile.withInputStream { i2pOptions.load(it) } + if (!i2pOptions.hasProperty("inbound.nickname")) + i2pOptions["inbound.nickname"] = "MuWire" + if (!i2pOptions.hasProperty("outbound.nickname")) + i2pOptions["outbound.nickname"] = "MuWire" } else { i2pOptions["inbound.nickname"] = "MuWire" i2pOptions["outbound.nickname"] = "MuWire"