summaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-07-11 11:18:23 -0400
committerNick Mathewson <nickm@torproject.org>2017-08-08 20:29:34 -0400
commit6c3d525c361adac1ad769f87a343fe3e9d2b050b (patch)
treeae9debf88c6d54872f0d4e2ee3212d859397bfaf /src/or/circuituse.c
parent713eb08bc9582b49e8073122fb68c3fac5bae188 (diff)
downloadtor-6c3d525c361adac1ad769f87a343fe3e9d2b050b.tar.gz
tor-6c3d525c361adac1ad769f87a343fe3e9d2b050b.zip
prop224: Make circuit prediction aware of v3 services
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r--src/or/circuituse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index b19f9ed46f..5292dc01db 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -1116,7 +1116,7 @@ needs_exit_circuits(time_t now, int *needs_uptime, int *needs_capacity)
STATIC int
needs_hs_server_circuits(int num_uptime_internal)
{
- return (rend_num_services() &&
+ return ((rend_num_services() || hs_service_get_num_services()) &&
num_uptime_internal < SUFFICIENT_UPTIME_INTERNAL_HS_SERVERS &&
router_have_consensus_path() != CONSENSUS_PATH_UNKNOWN);
}