소스 검색

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

svn:r5235
Nick Mathewson 20 년 전
부모
커밋
bf9ff1c1e7
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/or/router.c

+ 2 - 0
src/or/router.c

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