From bee1e46bd179b4085f47f3f3fc34db94e67e1c72 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Mon, 17 Sep 2012 20:21:22 +0200 Subject: Don't do reachability testing over IPv6 unless AuthDirPublishIPv6 is set. This affects both directory authorities and bridge authoritites. --- src/or/dirserv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/or/dirserv.c') diff --git a/src/or/dirserv.c b/src/or/dirserv.c index a8f2fb9de0..d3556901ab 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -3415,7 +3415,8 @@ dirserv_single_reachability_test(time_t now, routerinfo_t *router) router->cache_info.identity_digest); /* Possible IPv6. */ - if (!tor_addr_is_null(&router->ipv6_addr)) { + if (get_options()->AuthDirHasIPv6Connectivity == 1 && + !tor_addr_is_null(&router->ipv6_addr)) { char addrstr[TOR_ADDR_BUF_LEN]; log_debug(LD_OR, "Testing reachability of %s at %s:%u.", router->nickname, -- cgit v1.2.3-54-g00ecf