diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-10-12 04:07:10 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-10-12 04:07:10 +0000 |
commit | bf9ff1c1e7d92bae01208172ed2424752ea836b2 (patch) | |
tree | 4a76a6d72cc13430d00934477c6d95d34b5d61dc /src/or/router.c | |
parent | 08e4f132a8643906463aaf82ff85e9d24505b6c4 (diff) | |
download | tor-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.c | 2 |
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; } |