------------------------------------------------------------ revno: 13179 revision-id: squid3@treenet.co.nz-20141016185603-b1boi62a0xq55tob parent: squid3@treenet.co.nz-20141016185213-fr5yxtdiamvez217 fixes bug: http://bugs.squid-cache.org/show_bug.cgi?id=4024 committer: Amos Jeffries branch nick: 3.4 timestamp: Thu 2014-10-16 11:56:03 -0700 message: Bug 4024: Bad host/IP ::1 when using IPv4-only environment ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20141016185603-b1boi62a0xq55tob # target_branch: http://bzr.squid-cache.org/bzr/squid3/3.4 # testament_sha1: e01952a3d971e979ffd909677b33b5934e215b80 # timestamp: 2014-10-16 19:50:36 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/3.4 # base_revision_id: squid3@treenet.co.nz-20141016185213-\ # fr5yxtdiamvez217 # # Begin patch === modified file 'src/acl/Ip.cc' --- src/acl/Ip.cc 2013-06-03 14:05:16 +0000 +++ src/acl/Ip.cc 2014-10-16 18:56:03 +0000 @@ -411,10 +411,15 @@ int errcode = getaddrinfo(addr1,NULL,&hints,&hp); if (hp == NULL) { - debugs(28, DBG_CRITICAL, "aclIpParseIpData: Bad host/IP: '" << addr1 << - "' in '" << t << "', flags=" << hints.ai_flags << - " : (" << errcode << ") " << gai_strerror(errcode) ); - self_destruct(); + if (strcmp(addr1, "::1") == 0) { + debugs(28, DBG_IMPORTANT, "aclIpParseIpData: IPv6 has not been enabled in host DNS resolver."); + delete q; + } else { + debugs(28, DBG_CRITICAL, "aclIpParseIpData: Bad host/IP: '" << addr1 << + "' in '" << t << "', flags=" << hints.ai_flags << + " : (" << errcode << ") " << gai_strerror(errcode) ); + self_destruct(); + } return NULL; }