diff options
author | David Goulet <dgoulet@torproject.org> | 2020-12-08 11:58:10 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2020-12-08 14:51:31 -0500 |
commit | e74f168bb4df0b06d4f224421570e160cfcdb7a9 (patch) | |
tree | 08d6174db7317de7e43b3e3878050f3906940a89 /src/feature/relay | |
parent | c618c4f27986825df2026fb22b8ee222edd1afa1 (diff) | |
download | tor-e74f168bb4df0b06d4f224421570e160cfcdb7a9.tar.gz tor-e74f168bb4df0b06d4f224421570e160cfcdb7a9.zip |
relay: Avoid log reachability test for bandwidth test circuit
Fixes #40205
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/relay')
-rw-r--r-- | src/feature/relay/selftest.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/feature/relay/selftest.c b/src/feature/relay/selftest.c index b711c94eb6..86b1533be1 100644 --- a/src/feature/relay/selftest.c +++ b/src/feature/relay/selftest.c @@ -274,7 +274,12 @@ router_do_orport_reachability_checks(const routerinfo_t *me, !orport_reachable ? "reachability" : "bandwidth", family_name, fmt_addrport_ap(ap)); - inform_testing_reachability(&ap->addr, ap->port, false); + if (!orport_reachable) { + /* Only log if we are actually doing a reachability test to learn if our + * ORPort is reachable. Else, this prints a log notice if we are simply + * opening a bandwidth testing circuit even do we are reachable. */ + inform_testing_reachability(&ap->addr, ap->port, false); + } circuit_launch_by_extend_info(CIRCUIT_PURPOSE_TESTING, ei, CIRCLAUNCH_NEED_CAPACITY| |