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

svn:r5235
This commit is contained in:
Nick Mathewson 2005-10-12 04:07:10 +00:00
parent 08e4f132a8
commit bf9ff1c1e7

View File

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