diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnel.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnel.java index e4f8453bc7f5c69114b8443f6844a24a8e9f71c6..0b2d2d7c0ff3d4489af22a98e27cf0291ef7fd08 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnel.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnel.java @@ -373,7 +373,7 @@ public class I2PTunnel implements Logging, EventDispatcher { privKeyFile = new File(args[2]); if (!privKeyFile.isAbsolute()) - privKeyFile = new File(_context.getAppDir(), args[2]); + privKeyFile = new File(_context.getConfigDir(), args[2]); if (!privKeyFile.canRead()) { l.log("private key file does not exist"); _log.error(getPrefix() + "Private key file does not exist or is not readable: " + args[2]); @@ -422,7 +422,7 @@ public class I2PTunnel implements Logging, EventDispatcher { privKeyFile = new File(args[2]); if (!privKeyFile.isAbsolute()) - privKeyFile = new File(_context.getAppDir(), args[2]); + privKeyFile = new File(_context.getConfigDir(), args[2]); if (!privKeyFile.canRead()) { l.log("private key file does not exist"); _log.error(getPrefix() + "Private key file does not exist or is not readable: " + args[2]); @@ -481,7 +481,7 @@ public class I2PTunnel implements Logging, EventDispatcher { privKeyFile = new File(args[3]); if (!privKeyFile.isAbsolute()) - privKeyFile = new File(_context.getAppDir(), args[3]); + privKeyFile = new File(_context.getConfigDir(), args[3]); if (!privKeyFile.canRead()) { l.log("private key file does not exist"); _log.error(getPrefix() + "Private key file does not exist or is not readable: " + args[3]); @@ -877,7 +877,7 @@ public class I2PTunnel implements Logging, EventDispatcher { File privKeyFile = new File(args[1]); if (!privKeyFile.isAbsolute()) - privKeyFile = new File(_context.getAppDir(), args[1]); + privKeyFile = new File(_context.getConfigDir(), args[1]); if (!privKeyFile.canRead()) { l.log("private key file does not exist"); _log.error(getPrefix() + "Private key file does not exist or is not readable: " + args[3]); diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/TunnelController.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/TunnelController.java index 6efff96e597ed5c457e5924dc14f909e2ee88b94..b5ca6c3a118131ab458ecd1f42e5b46dea676a55 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/TunnelController.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/TunnelController.java @@ -73,7 +73,7 @@ public class TunnelController implements Logging { File keyFile = new File(getPrivKeyFile()); if (!keyFile.isAbsolute()) - keyFile = new File(I2PAppContext.getGlobalContext().getAppDir(), getPrivKeyFile()); + keyFile = new File(I2PAppContext.getGlobalContext().getConfigDir(), getPrivKeyFile()); if (keyFile.exists()) { //log("Not overwriting existing private keys in " + keyFile.getAbsolutePath()); return;