aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-08-20 15:43:17 +0000
committerNick Mathewson <nickm@torproject.org>2007-08-20 15:43:17 +0000
commitd3b019a1df1b821cf4634ee289ec3d47d74c9a2a (patch)
tree6d4edc5b79856daca09ad4aa59f2de7eeb6d9064 /src
parent9e2b2695169e8bf072b0316bc613a2632dc81ecf (diff)
downloadtor-d3b019a1df1b821cf4634ee289ec3d47d74c9a2a.tar
tor-d3b019a1df1b821cf4634ee289ec3d47d74c9a2a.tar.gz
r14726@catbus: nickm | 2007-08-20 11:42:07 -0400
Make v3-only authorities check reachability svn:r11218
Diffstat (limited to 'src')
-rw-r--r--src/or/router.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 2c165a7aa..57942fb93 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -760,7 +760,10 @@ authdir_mode_publishes_statuses(or_options_t *options)
int
authdir_mode_tests_reachability(or_options_t *options)
{
- return authdir_mode_v1(options) || authdir_mode_v2(options);
+ return authdir_mode(options) &&
+ (options->V1AuthoritativeDir ||
+ options->V2AuthoritativeDir ||
+ options->V3AuthoritativeDir);
}
/** Return true iff we believe ourselves to be a bridge authoritative
* directory server.