aboutsummaryrefslogtreecommitdiff
path: root/src/feature/relay/selftest.c
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2020-04-30 15:08:57 +1000
committerteor <teor@torproject.org>2020-04-30 15:58:59 +1000
commit42e765efad79d1615f27614d25b7fa062a78684e (patch)
tree9da1045ab094d3d747006111c78926dd2f3f1d99 /src/feature/relay/selftest.c
parentd1c52e585b1d277b262303a6a73300ada18159ce (diff)
downloadtor-42e765efad79d1615f27614d25b7fa062a78684e.tar.gz
tor-42e765efad79d1615f27614d25b7fa062a78684e.zip
relay: Minor selftest comment updates
Part of 33222.
Diffstat (limited to 'src/feature/relay/selftest.c')
-rw-r--r--src/feature/relay/selftest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/feature/relay/selftest.c b/src/feature/relay/selftest.c
index 3b938d750f..79d56a0bc5 100644
--- a/src/feature/relay/selftest.c
+++ b/src/feature/relay/selftest.c
@@ -107,6 +107,7 @@ router_should_check_reachability(int test_or, int test_dir)
if (!me)
return 0;
+ /* Doesn't check our IPv6 address, see #34065. */
if (routerset_contains_router(options->ExcludeNodes, me, -1) &&
options->StrictNodes) {
/* If we've excluded ourself, and StrictNodes is set, we can't test
@@ -136,7 +137,8 @@ extend_info_from_router(const routerinfo_t *r)
tor_addr_port_t ap;
tor_assert(r);
- /* Make sure we don't need to check address reachability */
+ /* Relays always assume that the first hop is reachable. They ignore
+ * ReachableAddresses. */
tor_assert_nonfatal(router_connect_assume_or_reachable(get_options(), 0));
const ed25519_public_key_t *ed_id_key;