mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
try loading the bandwidth measurement file on startup too,
in case it's broken.
This commit is contained in:
parent
6fbdf635fa
commit
da88e05edc
1 changed files with 4 additions and 0 deletions
|
@ -3208,6 +3208,10 @@ options_validate(or_options_t *old_options, or_options_t *options,
|
|||
options->V3AuthoritativeDir))
|
||||
REJECT("AuthoritativeDir is set, but none of "
|
||||
"(Bridge/HS/V1/V2/V3)AuthoritativeDir is set.");
|
||||
/* If we have a v3bandwidthsfile and it's broken, complain on startup */
|
||||
if (options->V3BandwidthsFile && !old_options) {
|
||||
dirserv_read_measured_bandwidths(options->V3BandwidthsFile, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
if (options->AuthoritativeDir && !options->DirPort)
|
||||
|
|
Loading…
Add table
Reference in a new issue