From bf9ff1c1e7d92bae01208172ed2424752ea836b2 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 12 Oct 2005 04:07:10 +0000 Subject: [PATCH] Do not check whether DirPort is reachable when we are suppressing it because of hibernation. (Backport candidate) svn:r5235 --- src/or/router.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/or/router.c b/src/or/router.c index 2be304cb5b..75a10740a9 100644 --- a/src/or/router.c +++ b/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; }