]> 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:48:31 +0000 (21:48 +0100)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Sun, 28 Feb 2010 20:48:31 +0000 (21:48 +0100)
src/ip/IpAddress.cc

index 38e23d90aacb8010a0ff21c858f563a2f3a7fc41..2b9cdacadd978e4187acb65629f62eab0f7ed2ad 100644 (file)
@@ -287,10 +287,10 @@ bool IpAddress::SetIPv4()
 {
 #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 }}
     };
     static const struct in6_addr v4_any = {{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-                0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }}
+                0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }}
     };
 
     if ( IsLocalhost() ) {