Now i2ptunnel will generate certificates instead of failing with a permission denied error for trying to write to /i2ptunnel17.privKeys.dat

This commit is contained in:
dream
2011-08-17 03:25:46 +00:00
parent 421559c26e
commit b25a16f171

View File

@@ -874,7 +874,8 @@ public class IndexBean {
} else if (tun.getIsRunning() || tun.getIsStarting()) {
return "Tunnel must be stopped before modifying destination";
}
PrivateKeyFile pkf = new PrivateKeyFile(_privKeyFile);
PrivateKeyFile pkf = new PrivateKeyFile(new File(_context.getProperty("i2p.dir.config"), _privKeyFile));
try {
pkf.createIfAbsent();
} catch (Exception e) {