forked from I2P_Developers/i2p.i2p
- Don't delete privkey file for a non-persistent client tunnel
(ticket #599)
This commit is contained in:
@@ -342,7 +342,8 @@ public class IndexBean {
|
||||
String pk = cur.getPrivKeyFile();
|
||||
if (pk == null)
|
||||
pk = _privKeyFile;
|
||||
if (pk != null && pk.startsWith("i2ptunnel") && pk.endsWith("-privKeys.dat")) {
|
||||
if (pk != null && pk.startsWith("i2ptunnel") && pk.endsWith("-privKeys.dat") &&
|
||||
((!isClient(cur.getType())) || cur.getPersistentClientKey())) {
|
||||
File pkf = new File(_context.getConfigDir(), pk);
|
||||
if (pkf.exists()) {
|
||||
String name = cur.getName();
|
||||
|
Reference in New Issue
Block a user