Browse Source

r14726@catbus: nickm | 2007-08-20 11:42:07 -0400
Make v3-only authorities check reachability


svn:r11218

Nick Mathewson 18 years ago
parent
commit
d3b019a1df
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/or/router.c

+ 4 - 1
src/or/router.c

@@ -760,7 +760,10 @@ authdir_mode_publishes_statuses(or_options_t *options)
 int
 int
 authdir_mode_tests_reachability(or_options_t *options)
 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
 /** Return true iff we believe ourselves to be a bridge authoritative
  * directory server.
  * directory server.