forked from I2P_Developers/i2p.i2p
privkeyfile tweak
This commit is contained in:
@ -875,7 +875,10 @@ public class IndexBean {
|
||||
return "Tunnel must be stopped before modifying destination";
|
||||
}
|
||||
|
||||
PrivateKeyFile pkf = new PrivateKeyFile(new File(_context.getProperty("i2p.dir.config"), _privKeyFile));
|
||||
File keyFile = new File(_privKeyFile);
|
||||
if (!keyFile.isAbsolute())
|
||||
keyFile = new File(_context.getConfigDir(), _privKeyFile);
|
||||
PrivateKeyFile pkf = new PrivateKeyFile(keyFile);
|
||||
try {
|
||||
pkf.createIfAbsent();
|
||||
} catch (Exception e) {
|
||||
|
Reference in New Issue
Block a user