I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 65f1a5fe authored by jrandom's avatar jrandom Committed by zzz
Browse files

write out the public dest every time we connect, /including/ the first time. (thanks duck)

parent 64b94ab1
No related branches found
No related tags found
No related merge requests found
......@@ -467,6 +467,19 @@ class I2PAdapter {
if (_log.shouldLog(Log.INFO)) {
_log.info("New destination created: [" + us.toBase64() + "]");
}
fos.close();
try {
fos = new FileOutputStream(_publicDestFile);
fos.write(us.toBase64().getBytes());
fos.flush();
} catch (IOException fioe) {
_log.error("Error writing out the plain destination to [" + _publicDestFile + "]", fioe);
} finally {
if (fos != null) try { fos.close(); } catch (IOException fioe) {}
fos = null;
}
} catch (IOException ioe) {
if (_log.shouldLog(Log.ERROR)) {
_log.error("Error writing out the destination keys being created", ioe);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment