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

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

Router: Rekey all Android/ARM routers

parent 571986a7
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,7 @@ import net.i2p.router.RouterContext; ...@@ -35,6 +35,7 @@ import net.i2p.router.RouterContext;
import net.i2p.router.crypto.FamilyKeyCrypto; import net.i2p.router.crypto.FamilyKeyCrypto;
import net.i2p.router.networkdb.kademlia.PersistentDataStore; import net.i2p.router.networkdb.kademlia.PersistentDataStore;
import net.i2p.util.Log; import net.i2p.util.Log;
import net.i2p.util.SystemVersion;
/** /**
* Run once or twice at startup by StartupJob, * Run once or twice at startup by StartupJob,
...@@ -129,7 +130,7 @@ class LoadRouterInfoJob extends JobImpl { ...@@ -129,7 +130,7 @@ class LoadRouterInfoJob extends JobImpl {
(encTypeChanged && getContext().getProperty(CreateRouterInfoJob.PROP_ROUTER_ENCTYPE) == null)) { (encTypeChanged && getContext().getProperty(CreateRouterInfoJob.PROP_ROUTER_ENCTYPE) == null)) {
// Not explicitly configured, and default has changed // Not explicitly configured, and default has changed
// Give a chance of rekeying for each restart // Give a chance of rekeying for each restart
if (getContext().random().nextInt(REKEY_PROBABILITY) > 0) { if (!SystemVersion.isSlow() && getContext().random().nextInt(REKEY_PROBABILITY) > 0) {
sigTypeChanged = false; sigTypeChanged = false;
encTypeChanged = false; encTypeChanged = false;
if (_log.shouldWarn()) if (_log.shouldWarn())
......
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