From: Henrik Nordstrom Date: Sun, 28 Feb 2010 20:57:35 +0000 (+0100) Subject: Correct IPv4-mapped prefix, broken in rev 10247 Use POSIX tests for IPv6 address... X-Git-Tag: SQUID_3_2_0_1~397 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2924aacc32f8b27153b5fa094a59614fa6d239e1;p=thirdparty%2Fsquid.git Correct IPv4-mapped prefix, broken in rev 10247 Use POSIX tests for IPv6 address detections. --- diff --git a/src/ip/IpAddress.cc b/src/ip/IpAddress.cc index 2b9cdacadd..4fe2711275 100644 --- a/src/ip/IpAddress.cc +++ b/src/ip/IpAddress.cc @@ -317,7 +317,7 @@ bool IpAddress::IsLocalhost() const { #if USE_IPV6 static const struct in6_addr v4_localhost = {{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x01 }} + 0x00, 0x00, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x01 }} }; return IN6_IS_ADDR_LOOPBACK( &m_SocketAddr.sin6_addr ) || IN6_ARE_ADDR_EQUAL( &m_SocketAddr.sin6_addr, &v4_localhost );