aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-01-02 08:40:58 +0000
committerRoger Dingledine <arma@torproject.org>2006-01-02 08:40:58 +0000
commitc5a5161fb5d7a71c477b857db6f206bd2d560e5c (patch)
treeda061a836fd2ca2b85e7a0512a5aae50a184f3f2
parent358052416d5ac02ae2206417deab6e99c0c087b5 (diff)
downloadtor-c5a5161fb5d7a71c477b857db6f206bd2d560e5c.tar
tor-c5a5161fb5d7a71c477b857db6f206bd2d560e5c.tar.gz
prevent auth dir servers from enabling entry nodes.
svn:r5702
-rw-r--r--src/or/config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index cef5be524..562cad22e 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -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)