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

Skip to content
Snippets Groups Projects
Unverified Commit dda25bf1 authored by zzz's avatar zzz
Browse files

Router: Restart fixes part 2

Don't set our RI loaded from disk if too old
Rekeying was prevented by previous checkin,
but this fixes root cause
parent 04b1bdb4
No related branches found
No related tags found
No related merge requests found
2022-04-14 zzz
* Startup: Don't set our RI loaded from disk if too old
2022-04-13 zzz
* Router:
- Reset uptime on soft restart
- Don't rekey after failure to store our RI due to clock skew
- Change comm system state during soft restart
2022-04-12 zzz
* Console: Fix Sybil closest hash tabs
* Transport: Fix UPnP deadlock
* Tunnels: Don't build client tunnels less than min length
2022-04-11 zzz
* I2CP: Fix external I2CP broken when session ID is 0
2022-04-05 zzz
* SSU2: Fragmented Session Confirmed
 
......
......@@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Git";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 13;
public final static long BUILD = 14;
/** for example "-test" */
public final static String EXTRA = "";
......
......@@ -131,6 +131,17 @@ class LoadRouterInfoJob extends JobImpl {
fis1 = null;
rif.delete();
}
if (_us != null) {
long now = getContext().clock().now();
long riTime = _us.getPublished();
if (riTime > now || now - riTime > 45*60*1000) {
// prevent netdb store failure and rekey
_us = null;
try { fis1.close(); } catch (IOException ioe2) {}
fis1 = null;
rif.delete();
}
}
}
if (keys2Exist || keysExist) {
......
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