forked from I2P_Developers/i2p.i2p
Router: Don't rekey previous ECIES every restart on ARM
This commit is contained in:
@@ -193,11 +193,13 @@ class LoadRouterInfoJob extends JobImpl {
|
||||
}
|
||||
|
||||
/**
|
||||
* Does our RI private key length match the configuration?
|
||||
* Does our RI ElGamal private key length match the configuration?
|
||||
* If not, return true.
|
||||
* @since 0.9.8
|
||||
*/
|
||||
private boolean shouldRebuild(PrivateKey privkey) {
|
||||
if (privkey.getType() != EncType.ELGAMAL_2048)
|
||||
return false;
|
||||
// Prevent returning true more than once, ever.
|
||||
// If we are called a second time, it's probably because we failed
|
||||
// to delete router.keys for some reason.
|
||||
|
||||
Reference in New Issue
Block a user