Make ContactInfo mandatory for authoritative directories.

svn:r4896
This commit is contained in:
Nick Mathewson 2005-09-02 20:29:29 +00:00
parent 2e1d31b43b
commit 09e8521236

View File

@ -1650,8 +1650,12 @@ options_validate(or_options_t *options)
}
if (options->AuthoritativeDir) {
if (!options->ContactInfo) {
log(LOG_WARN, "Authoritative directory servers must set ContactInfo");
result = -1;
}
if (!options->RecommendedVersions) {
log(LOG_WARN, "Directory servers must configure RecommendedVersions.");
log(LOG_WARN, "Authoritative directory servers must configure RecommendedVersions.");
result = -1;
}
if (!options->RecommendedClientVersions)