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";
|
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 {
|
try {
|
||||||
pkf.createIfAbsent();
|
pkf.createIfAbsent();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@@ -18,10 +18,10 @@ public class RouterVersion {
|
|||||||
/** deprecated */
|
/** deprecated */
|
||||||
public final static String ID = "Monotone";
|
public final static String ID = "Monotone";
|
||||||
public final static String VERSION = CoreVersion.VERSION;
|
public final static String VERSION = CoreVersion.VERSION;
|
||||||
public final static long BUILD = 20;
|
public final static long BUILD = 21;
|
||||||
|
|
||||||
/** for example "-test" */
|
/** for example "-test" */
|
||||||
public final static String EXTRA = "";
|
public final static String EXTRA = "-rc";
|
||||||
public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;
|
public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;
|
||||||
public static void main(String args[]) {
|
public static void main(String args[]) {
|
||||||
System.out.println("I2P Router version: " + FULL_VERSION);
|
System.out.println("I2P Router version: " + FULL_VERSION);
|
||||||
|
Reference in New Issue
Block a user