From 1d22abfa88c655e0b9cb8e6d3b8c42971122f52d Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Tue, 14 Apr 2020 13:17:47 +0100 Subject: [PATCH] add ability to change the tunnel name --- core/src/main/groovy/com/muwire/core/Core.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/groovy/com/muwire/core/Core.groovy b/core/src/main/groovy/com/muwire/core/Core.groovy index 9b347612..82f2fde9 100644 --- a/core/src/main/groovy/com/muwire/core/Core.groovy +++ b/core/src/main/groovy/com/muwire/core/Core.groovy @@ -145,7 +145,7 @@ public class Core { final SigningPrivateKey spk - public Core(MuWireSettings props, File home, String myVersion) { + public Core(MuWireSettings props, File home, String myVersion, String tunnelName = "MuWire") { this.home = home this.version = myVersion this.muOptions = props @@ -165,9 +165,9 @@ public class Core { i2pOptionsFile.withInputStream { i2pOptions.load(it) } if (!i2pOptions.containsKey("inbound.nickname")) - i2pOptions["inbound.nickname"] = "MuWire" + i2pOptions["inbound.nickname"] = tunnelName if (!i2pOptions.containsKey("outbound.nickname")) - i2pOptions["outbound.nickname"] = "MuWire" + i2pOptions["outbound.nickname"] = tunnelName } if (!(i2pOptions.hasProperty("i2np.ntcp.port") && i2pOptions.hasProperty("i2np.udp.port")