浏览代码

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;
 }