aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-10-12 04:07:10 +0000
committerNick Mathewson <nickm@torproject.org>2005-10-12 04:07:10 +0000
commitbf9ff1c1e7d92bae01208172ed2424752ea836b2 (patch)
tree4a76a6d72cc13430d00934477c6d95d34b5d61dc /src/or/router.c
parent08e4f132a8643906463aaf82ff85e9d24505b6c4 (diff)
downloadtor-bf9ff1c1e7d92bae01208172ed2424752ea836b2.tar
tor-bf9ff1c1e7d92bae01208172ed2424752ea836b2.tar.gz
Do not check whether DirPort is reachable when we are suppressing it because of hibernation. (Backport candidate)
svn:r5235
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 2be304cb5..75a10740a 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;
}