Router: Disable reseeding and NTP in vmCommSystem

This commit is contained in:
zzz
2021-01-07 11:04:56 -05:00
parent 41c7b7382a
commit ec89a80e80
2 changed files with 4 additions and 2 deletions

View File

@@ -66,7 +66,8 @@ public class ReseedChecker {
return false;
}
if (_context.getBooleanProperty(Reseeder.PROP_DISABLE)) {
if (_context.getBooleanProperty(Reseeder.PROP_DISABLE) ||
_context.getBooleanProperty("i2p.vmCommSystem")) {
int x = count - 1; // us
// no ngettext, this is rare
String s;

View File

@@ -87,7 +87,8 @@ public class RouterTimestamper extends Timestamper {
// This means we no longer check every 5 minutes to see if we got enabled,
// so the property must be set at startup.
// We still need to be instantiated since the router calls clock().getTimestamper().waitForInitialization()
_disabled = ctx.getProperty(PROP_DISABLED, DEFAULT_DISABLED);
_disabled = ctx.getProperty(PROP_DISABLED, DEFAULT_DISABLED) ||
ctx.getBooleanProperty("i2p.vmCommSystem");
if (_disabled) {
_initialized = true;
_zones = null;