diff options
author | teor <teor@torproject.org> | 2020-04-30 15:11:50 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2020-04-30 15:58:37 +1000 |
commit | c5ee3d7eb8c337703498b8c41b0c286ddd3cf9b4 (patch) | |
tree | ce7c835c3b1a26dc272f709896eba92e4288722f /src/core/or/circuituse.c | |
parent | a202f03c64c7655fcc8d3fa72bc39deeac198687 (diff) | |
download | tor-c5ee3d7eb8c337703498b8c41b0c286ddd3cf9b4.tar.gz tor-c5ee3d7eb8c337703498b8c41b0c286ddd3cf9b4.zip |
relay: Clarify reachability status check functions
This is an automated commit, generated by this command:
./scripts/maint/rename_c_identifier.py \
check_whether_orport_reachable router_skip_orport_reachability_check \
check_whether_dirport_reachable router_skip_dirport_reachability_check
It was generated with --no-verify, so it probably breaks some commit hooks.
The commiter should be sure to fix them up in a subsequent commit.
Part of 33222.
Diffstat (limited to 'src/core/or/circuituse.c')
-rw-r--r-- | src/core/or/circuituse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/or/circuituse.c b/src/core/or/circuituse.c index 066d5d437a..51e3281337 100644 --- a/src/core/or/circuituse.c +++ b/src/core/or/circuituse.c @@ -1641,7 +1641,7 @@ static void circuit_testing_opened(origin_circuit_t *circ) { if (have_performed_bandwidth_test || - !check_whether_orport_reachable(get_options())) { + !router_skip_orport_reachability_check(get_options())) { /* either we've already done everything we want with testing circuits, * or this testing circuit became open due to a fluke, e.g. we picked * a last hop where we already had the connection open due to an @@ -1659,7 +1659,7 @@ static void circuit_testing_failed(origin_circuit_t *circ, int at_last_hop) { const or_options_t *options = get_options(); - if (server_mode(options) && check_whether_orport_reachable(options)) + if (server_mode(options) && router_skip_orport_reachability_check(options)) return; log_info(LD_GENERAL, |