mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
prevent auth dir servers from enabling entry nodes.
svn:r5702
This commit is contained in:
parent
358052416d
commit
c5a5161fb5
@ -1905,6 +1905,11 @@ options_validate(or_options_t *old_options, or_options_t *options)
|
|||||||
if (!options->RecommendedServerVersions)
|
if (!options->RecommendedServerVersions)
|
||||||
options->RecommendedServerVersions =
|
options->RecommendedServerVersions =
|
||||||
config_lines_dup(options->RecommendedVersions);
|
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)
|
if (options->AuthoritativeDir && !options->DirPort)
|
||||||
|
Loading…
Reference in New Issue
Block a user