privkeyfile tweak

This commit is contained in:
zzz
2011-08-17 17:46:50 +00:00
parent 1bf651b88b
commit aeccbc975f
2 changed files with 6 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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);