aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-09-17 16:05:09 -0400
committerNick Mathewson <nickm@torproject.org>2012-09-17 16:05:09 -0400
commit5dfec9f8335d0fa954ff5423a41e3e249547fd8d (patch)
treed2b30c0fea6353df57f85cd5ee2b3e8a8cced116 /src/or/dirserv.c
parent1e5cd1c7d6f45456c5e7c1b288e5e02e7c02b377 (diff)
parentbee1e46bd179b4085f47f3f3fc34db94e67e1c72 (diff)
downloadtor-5dfec9f8335d0fa954ff5423a41e3e249547fd8d.tar.gz
tor-5dfec9f8335d0fa954ff5423a41e3e249547fd8d.zip
Merge remote-tracking branch 'linus/bug6880'
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 9ca4c54f75..468515eb22 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -3416,7 +3416,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,