mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
allow any value for HearbeatPeriod in testing Tor networks
This commit is contained in:
parent
f8dac5c900
commit
325348b360
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user