diff options
author | Roger Dingledine <arma@torproject.org> | 2007-12-21 06:33:02 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-12-21 06:33:02 +0000 |
commit | 7b60d6c526fd1a7e7d83e1fb2ab27ab0a3d8890b (patch) | |
tree | 0fafdf713a1ab6878c57850fca912f93f80a998c /src/or/router.c | |
parent | e2dc45a2e1f12bb19b7ce33fb71042f5473d79d2 (diff) | |
download | tor-7b60d6c526fd1a7e7d83e1fb2ab27ab0a3d8890b.tar.gz tor-7b60d6c526fd1a7e7d83e1fb2ab27ab0a3d8890b.zip |
Directory authorities should only automatically download Extra Info
documents if they're v1, v2, or v3 authorities.
svn:r12898
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c index aded6e77c6..a64320f11b 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -823,7 +823,8 @@ authdir_mode_v3(or_options_t *options) { return authdir_mode(options) && options->V3AuthoritativeDir != 0; } -static int +/** Return true iff we are a v1, v2, or v3 directory authority. */ +int authdir_mode_any_main(or_options_t *options) { return options->V1AuthoritativeDir || |