--------------------- PatchSet 5504 Date: 2007/08/27 04:01:08 Author: amosjeffries Branch: squid3-ipv6 Tag: (none) Log: Add option for dnsserver helper to prefer IPv6 results over IPv4. Members: src/dnsserver.cc:1.7.4.14->1.7.4.15 Index: squid3/src/dnsserver.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/dnsserver.cc,v retrieving revision 1.7.4.14 retrieving revision 1.7.4.15 diff -u -r1.7.4.14 -r1.7.4.15 --- squid3/src/dnsserver.cc 17 Aug 2007 02:53:14 -0000 1.7.4.14 +++ squid3/src/dnsserver.cc 27 Aug 2007 04:01:08 -0000 1.7.4.15 @@ -1,6 +1,6 @@ /* - * $Id: dnsserver.cc,v 1.7.4.14 2007/08/17 02:53:14 amosjeffries Exp $ + * $Id: dnsserver.cc,v 1.7.4.15 2007/08/27 04:01:08 amosjeffries Exp $ * * DEBUG: section 0 DNS Resolver * AUTHOR: Harvest Derived @@ -329,11 +329,17 @@ #endif #endif -#if HAVE_RES_INIT && !USE_IPV6 +#if HAVE_RES_INIT +// && !USE_IPV6 res_init(); #endif +#if USE_IPV6 + /* perform AAAA lookups *before* A lookups in IPv6 mode. */ + _res.options |= RES_USE_INET6; +#endif + while ((c = getopt(argc, argv, "Dhs:v")) != -1) { switch (c) {