aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-12-21 06:33:02 +0000
committerRoger Dingledine <arma@torproject.org>2007-12-21 06:33:02 +0000
commit7b60d6c526fd1a7e7d83e1fb2ab27ab0a3d8890b (patch)
tree0fafdf713a1ab6878c57850fca912f93f80a998c /src/or/router.c
parente2dc45a2e1f12bb19b7ce33fb71042f5473d79d2 (diff)
downloadtor-7b60d6c526fd1a7e7d83e1fb2ab27ab0a3d8890b.tar
tor-7b60d6c526fd1a7e7d83e1fb2ab27ab0a3d8890b.tar.gz
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c
index aded6e77c..a64320f11 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 ||