aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-04-28 14:46:53 -0400
committerNick Mathewson <nickm@torproject.org>2015-04-28 14:46:53 -0400
commit7286a27cfc74ca81ed71a8579ded95b25564708a (patch)
tree11a7f0b008216c05747d30b272cda6c6afa2f2b7 /src
parent6ed57331695bee98f408d99c60684aaadcfe9a43 (diff)
parent26c344a563610fcd293cd82bbb0b08dce737e5f3 (diff)
downloadtor-7286a27cfc74ca81ed71a8579ded95b25564708a.tar.gz
tor-7286a27cfc74ca81ed71a8579ded95b25564708a.zip
Merge remote-tracking branch 'origin/maint-0.2.6'
Diffstat (limited to 'src')
-rw-r--r--src/or/dirserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index e5a5b54303..a024be8342 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -1305,7 +1305,7 @@ dirserv_thinks_router_is_hs_dir(const routerinfo_t *router,
else
uptime = real_uptime(router, now);
- return (router->wants_to_be_hs_dir &&
+ return (router->wants_to_be_hs_dir && router->dir_port &&
uptime >= get_options()->MinUptimeHidServDirectoryV2 &&
router_is_active(router, node, now));
}