Transports: Don't rekey noise params on testnet

This commit is contained in:
zzz
2022-09-07 10:09:05 -04:00
parent 26f882edd5
commit b610b7a695
2 changed files with 2 additions and 2 deletions

View File

@@ -250,7 +250,7 @@ public class NTCPTransport extends TransportImpl {
String s = null;
// try to determine if we've been down for 30 days or more
long minDowntime = _context.router().isHidden() ? MIN_DOWNTIME_TO_REKEY_HIDDEN : MIN_DOWNTIME_TO_REKEY;
boolean shouldRekey = _context.getEstimatedDowntime() >= minDowntime;
boolean shouldRekey = !allowLocal() && _context.getEstimatedDowntime() >= minDowntime;
if (!shouldRekey) {
s = ctx.getProperty(PROP_NTCP2_SP);
if (s != null) {

View File

@@ -428,7 +428,7 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
String s = null;
// try to determine if we've been down for 30 days or more
long minDowntime = _context.router().isHidden() ? MIN_DOWNTIME_TO_REKEY_HIDDEN : MIN_DOWNTIME_TO_REKEY;
boolean shouldRekey = _context.getEstimatedDowntime() >= minDowntime;
boolean shouldRekey = !allowLocal() && _context.getEstimatedDowntime() >= minDowntime;
if (!shouldRekey) {
s = ctx.getProperty(PROP_SSU2_SP);
if (s != null) {