summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorRob Jansen <jansen@cs.umn.edu>2018-12-12 15:27:45 -0500
committerMatt Traudt <sirmatt@ksu.edu>2018-12-14 09:22:23 -0500
commit325348b360fc8a51d1344d918c1bb20017f1e863 (patch)
tree17ba6f240e437d276290a6394827af2639e5bea2 /src/app
parentf8dac5c900856494867996f60da848b0111aad35 (diff)
downloadtor-325348b360fc8a51d1344d918c1bb20017f1e863.tar.gz
tor-325348b360fc8a51d1344d918c1bb20017f1e863.zip
allow any value for HearbeatPeriod in testing Tor networks
Diffstat (limited to 'src/app')
-rw-r--r--src/app/config/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c
index dcefa3d6a4..071c33d530 100644
--- a/src/app/config/config.c
+++ b/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;