allow any value for HearbeatPeriod in testing Tor networks

This commit is contained in:
Rob Jansen 2018-12-12 15:27:45 -05:00 committed by Matt Traudt
parent f8dac5c900
commit 325348b360

View File

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