aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/circuituse.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-02-17 11:00:14 -0500
committerDavid Goulet <dgoulet@torproject.org>2021-02-22 08:52:06 -0500
commit38649b4f9522d5fc2b186d2a02cefb9abaefc519 (patch)
treefe48cc31653b7178c3566e28786c2c9ea565f075 /src/core/or/circuituse.c
parentc0589d06be698ea864e2c58e40ffda0f228440d4 (diff)
downloadtor-38649b4f9522d5fc2b186d2a02cefb9abaefc519.tar.gz
tor-38649b4f9522d5fc2b186d2a02cefb9abaefc519.zip
relay: Remove dirport reachability self test
Regular relays are about to get their DirPort removed so that reachability test is not useful anymore Authorities will still use the DirPort but because network reentry towards their DirPort is now denied network wide, this test is not useful anymore and so it should simply be considered reachable at all time. Part of #40282 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core/or/circuituse.c')
-rw-r--r--src/core/or/circuituse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/or/circuituse.c b/src/core/or/circuituse.c
index b00d24407a..a49d4b8889 100644
--- a/src/core/or/circuituse.c
+++ b/src/core/or/circuituse.c
@@ -1647,8 +1647,9 @@ circuit_testing_opened(origin_circuit_t *circ)
} else if (circuit_enough_testing_circs()) {
router_perform_bandwidth_test(NUM_PARALLEL_TESTING_CIRCS, time(NULL));
have_performed_bandwidth_test = 1;
- } else
- router_do_reachability_checks(1, 0);
+ } else {
+ router_do_reachability_checks();
+ }
}
/** A testing circuit has failed to build. Take whatever stats we want. */