mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +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 &&
|
if (options->HeartbeatPeriod &&
|
||||||
options->HeartbeatPeriod < MIN_HEARTBEAT_PERIOD) {
|
options->HeartbeatPeriod < MIN_HEARTBEAT_PERIOD &&
|
||||||
|
!options->TestingTorNetwork) {
|
||||||
log_warn(LD_CONFIG, "HeartbeatPeriod option is too short; "
|
log_warn(LD_CONFIG, "HeartbeatPeriod option is too short; "
|
||||||
"raising to %d seconds.", MIN_HEARTBEAT_PERIOD);
|
"raising to %d seconds.", MIN_HEARTBEAT_PERIOD);
|
||||||
options->HeartbeatPeriod = MIN_HEARTBEAT_PERIOD;
|
options->HeartbeatPeriod = MIN_HEARTBEAT_PERIOD;
|
||||||
|
Loading…
Reference in New Issue
Block a user