[tor-bugs] #16524 [Tor]: Don't vote HSDir if we aren't voting Valid
Tor Bug Tracker & Wiki
blackhole at torproject.org
Tue Aug 4 21:35:54 UTC 2015
#16524: Don't vote HSDir if we aren't voting Valid
-----------------------------+--------------------------------
Reporter: arma | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Tor: 0.2.7.x-final
Component: Tor | Version:
Resolution: | Keywords: SponsorR, tor-auth
Actual Points: | Parent ID: #16538
Points: |
-----------------------------+--------------------------------
Comment (by arma):
I'm running this on moria1:
{{{
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 0a15332..2f10114 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -1372,7 +1372,8 @@ dirserv_thinks_router_is_hs_dir(const routerinfo_t
*router
return (router->wants_to_be_hs_dir && router->dir_port &&
node->is_stable &&
- uptime >= get_options()->MinUptimeHidServDirectoryV2);
+ uptime >= get_options()->MinUptimeHidServDirectoryV2 &&
+ router_is_active(router, node, now));
}
/** Don't consider routers with less bandwidth than this when computing
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/16524#comment:7>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list