diff options
author | David Goulet <dgoulet@torproject.org> | 2017-07-10 11:31:51 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-08-08 20:29:34 -0400 |
commit | 4a8cf17897ca23f8352a27c1bffb6ebfd68a1e0e (patch) | |
tree | ecfa01e7deeb442e1b424172133ca50003f9115f /src/or/circuituse.c | |
parent | a6b6227b2141f8d9d36f8555253ec4d56f423b04 (diff) | |
download | tor-4a8cf17897ca23f8352a27c1bffb6ebfd68a1e0e.tar.gz tor-4a8cf17897ca23f8352a27c1bffb6ebfd68a1e0e.zip |
hs: Rename num_rend_services()
Renamed to rend_num_services() so it is consistent with the legacy naming.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r-- | src/or/circuituse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c index 4d450f1147..247c5bbbb0 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -1115,7 +1115,7 @@ needs_exit_circuits(time_t now, int *needs_uptime, int *needs_capacity) STATIC int needs_hs_server_circuits(int num_uptime_internal) { - return (num_rend_services() && + return (rend_num_services() && num_uptime_internal < SUFFICIENT_UPTIME_INTERNAL_HS_SERVERS && router_have_consensus_path() != CONSENSUS_PATH_UNKNOWN); } |