diff options
author | Roger Dingledine <arma@torproject.org> | 2006-01-02 08:40:58 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-01-02 08:40:58 +0000 |
commit | c5a5161fb5d7a71c477b857db6f206bd2d560e5c (patch) | |
tree | da061a836fd2ca2b85e7a0512a5aae50a184f3f2 | |
parent | 358052416d5ac02ae2206417deab6e99c0c087b5 (diff) | |
download | tor-c5a5161fb5d7a71c477b857db6f206bd2d560e5c.tar tor-c5a5161fb5d7a71c477b857db6f206bd2d560e5c.tar.gz |
prevent auth dir servers from enabling entry nodes.
svn:r5702
-rw-r--r-- | src/or/config.c | 5 |
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) |