From: Amos Jeffries Date: Wed, 13 Jul 2011 09:25:23 +0000 (-0600) Subject: Remove duplicate calls to IsAnyAddr in DNS X-Git-Tag: SQUID_3_1_15~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8556da877d5d03bbf5fa5a7aaaa3f660c19a17d7;p=thirdparty%2Fsquid.git Remove duplicate calls to IsAnyAddr in DNS --- diff --git a/src/dns_internal.cc b/src/dns_internal.cc index 1775ec9870..998bb6b61e 100644 --- a/src/dns_internal.cc +++ b/src/dns_internal.cc @@ -1386,7 +1386,7 @@ idnsInit(void) IpAddress addrB = addrA; addrA.SetIPv4(); - if (Ip::EnableIpv6 && (addrB.IsAnyAddr() || addrB.IsIPv6())) { + if (Ip::EnableIpv6 && addrB.IsIPv6()) { debugs(78, 2, "idnsInit: attempt open DNS socket to: " << addrB); DnsSocketB = comm_open_listener(SOCK_DGRAM, IPPROTO_UDP, @@ -1395,7 +1395,7 @@ idnsInit(void) "DNS Socket IPv6"); } - if (addrA.IsAnyAddr() || addrA.IsIPv4()) { + if (addrA.IsIPv4()) { debugs(78, 2, "idnsInit: attempt open DNS socket to: " << addrA); DnsSocketA = comm_open_listener(SOCK_DGRAM, IPPROTO_UDP,