]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Correct IPv4-mapped prefix, broken in rev 10247 Use POSIX tests for IPv6 address...
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Sun, 28 Feb 2010 20:57:35 +0000 (21:57 +0100)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Sun, 28 Feb 2010 20:57:35 +0000 (21:57 +0100)
src/ip/IpAddress.cc

index 2b9cdacadd978e4187acb65629f62eab0f7ed2ad..4fe2711275add4161a7d0c4d6b0999769abb4f05 100644 (file)
@@ -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 );