mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
when we're an auth dir server but don't claim to be a versioning
auth dir server, don't demand that we define RecommendedVersions. svn:r6180
This commit is contained in:
parent
51fc6799ad
commit
c7839a17f5
@ -2172,8 +2172,8 @@ options_validate(or_options_t *old_options, or_options_t *options,
|
|||||||
if (options->AuthoritativeDir) {
|
if (options->AuthoritativeDir) {
|
||||||
if (!options->ContactInfo)
|
if (!options->ContactInfo)
|
||||||
REJECT("Authoritative directory servers must set ContactInfo");
|
REJECT("Authoritative directory servers must set ContactInfo");
|
||||||
if (!options->RecommendedVersions)
|
if (VersioningAuthoritativeDir && !options->RecommendedVersions)
|
||||||
REJECT("Authoritative directory servers must set RecommendedVersions.");
|
REJECT("Versioning auth dir servers must set RecommendedVersions.");
|
||||||
if (!options->RecommendedClientVersions)
|
if (!options->RecommendedClientVersions)
|
||||||
options->RecommendedClientVersions =
|
options->RecommendedClientVersions =
|
||||||
config_lines_dup(options->RecommendedVersions);
|
config_lines_dup(options->RecommendedVersions);
|
||||||
|
Loading…
Reference in New Issue
Block a user