Преглед на файлове

Don't do reachability testing over IPv6 unless AuthDirPublishIPv6 is set.

This affects both directory authorities and bridge authoritites.
Linus Nordberg преди 13 години
родител
ревизия
bee1e46bd1
променени са 2 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 3 0
      changes/bug6880
  2. 2 1
      src/or/dirserv.c

+ 3 - 0
changes/bug6880

@@ -0,0 +1,3 @@
+  o Minor bugfixes:
+    - Don't do reachability testing over IPv6 unless
+      AuthDirPublishIPv6 is set.  Fix for bug 6880.

+ 2 - 1
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,