aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorMatthew Finkel <Matthew.Finkel@gmail.com>2014-07-09 00:08:09 +0000
committerMatthew Finkel <Matthew.Finkel@gmail.com>2014-07-09 00:48:00 +0000
commit43bba9541af26ababa4854fa960ffe0e37d920e9 (patch)
tree3b4cf20f0ca3f2fd9f4f8fd5c48ee4c17181a679 /src/or/dirserv.c
parent48d7fceee5e6041ccdd4316f51de0d6b5e1818ed (diff)
downloadtor-43bba9541af26ababa4854fa960ffe0e37d920e9.tar.gz
tor-43bba9541af26ababa4854fa960ffe0e37d920e9.zip
Only active relays should be given HSDir
We should only assign a relay the HSDir flag if it is currently considered valid. We can accomplish this by only considering active relays, and as a consequence of this we also exclude relays that are currently hibernating. Fixes #12573
Diffstat (limited to 'src/or/dirserv.c')
-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 aedd092522..a033f8be6d 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -1468,7 +1468,7 @@ dirserv_thinks_router_is_hs_dir(const routerinfo_t *router,
* to fix the bug was 0.2.2.25-alpha. */
return (router->wants_to_be_hs_dir && router->dir_port &&
uptime >= get_options()->MinUptimeHidServDirectoryV2 &&
- node->is_running);
+ router_is_active(router, node, now));
}
/** Don't consider routers with less bandwidth than this when computing