Explorar o código

Merge remote-tracking branch 'tor-github/pr/595'

Nick Mathewson %!s(int64=5) %!d(string=hai) anos
pai
achega
a3e6f2467b
Modificáronse 2 ficheiros con 5 adicións e 1 borrados
  1. 3 0
      changes/ticket28840
  2. 2 1
      src/app/config/config.c

+ 3 - 0
changes/ticket28840

@@ -0,0 +1,3 @@
+  o Minor features (testing):
+    - Allow HeartbeatPeriod of less than 30 minutes in testing Tor networks.
+      Closes ticket 28840, patch by robgjansen

+ 2 - 1
src/app/config/config.c

@@ -3897,7 +3897,8 @@ options_validate(or_options_t *old_options, or_options_t *options,
   }
 
   if (options->HeartbeatPeriod &&
-      options->HeartbeatPeriod < MIN_HEARTBEAT_PERIOD) {
+      options->HeartbeatPeriod < MIN_HEARTBEAT_PERIOD &&
+      !options->TestingTorNetwork) {
     log_warn(LD_CONFIG, "HeartbeatPeriod option is too short; "
              "raising to %d seconds.", MIN_HEARTBEAT_PERIOD);
     options->HeartbeatPeriod = MIN_HEARTBEAT_PERIOD;