prevent auth dir servers from enabling entry nodes.

svn:r5702
This commit is contained in:
Roger Dingledine 2006-01-02 08:40:58 +00:00
parent 358052416d
commit c5a5161fb5

View File

@ -1905,6 +1905,11 @@ options_validate(or_options_t *old_options, or_options_t *options)
if (!options->RecommendedServerVersions)
options->RecommendedServerVersions =
config_lines_dup(options->RecommendedVersions);
if (options->UseEntryNodes) {
notice(LD_CONFIG, "Authoritative directory servers can't set "
"UseEntryNodes. Disabling.");
options->UseEntryNodes = 0;
}
}
if (options->AuthoritativeDir && !options->DirPort)