Browse Source

Do not check whether DirPort is reachable when we are suppressing it because of hibernation. (Backport candidate)

svn:r5235
Nick Mathewson 20 years ago
parent
commit
bf9ff1c1e7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/or/router.c

+ 2 - 0
src/or/router.c

@@ -402,8 +402,10 @@ int
 check_whether_dirport_reachable(void)
 check_whether_dirport_reachable(void)
 {
 {
   or_options_t *options = get_options();
   or_options_t *options = get_options();
+  routerinfo_t *ri = router_get_my_routerinfo();
   return !options->DirPort ||
   return !options->DirPort ||
          options->AssumeReachable ||
          options->AssumeReachable ||
+         (ri && !ri->dir_port) ||
          can_reach_dir_port;
          can_reach_dir_port;
 }
 }