summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 436c2f6183..cc4d435a6d 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -2172,8 +2172,8 @@ options_validate(or_options_t *old_options, or_options_t *options,
if (options->AuthoritativeDir) {
if (!options->ContactInfo)
REJECT("Authoritative directory servers must set ContactInfo");
- if (!options->RecommendedVersions)
- REJECT("Authoritative directory servers must set RecommendedVersions.");
+ if (VersioningAuthoritativeDir && !options->RecommendedVersions)
+ REJECT("Versioning auth dir servers must set RecommendedVersions.");
if (!options->RecommendedClientVersions)
options->RecommendedClientVersions =
config_lines_dup(options->RecommendedVersions);