Router: Don't rekey previous ECIES every restart on ARM

This commit is contained in:
zzz
2021-02-20 14:26:56 -05:00
parent 5d5e6fa3c2
commit b656274c92

View File

@@ -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.