]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Ip::Address::IsAnyAddr did not return true in the case the ip address is an ipv4...
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 29 Jun 2011 19:58:09 +0000 (22:58 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 29 Jun 2011 19:58:09 +0000 (22:58 +0300)
src/ip/Address.cc

index 420b9689287c9973109ce8f28b3c118032885c20..310b032110bc77abad21ca5142b8eff72e40f612 100644 (file)
@@ -185,7 +185,7 @@ Ip::Address::IsIPv6() const
 bool
 Ip::Address::IsAnyAddr() const
 {
-    return IN6_IS_ADDR_UNSPECIFIED( &m_SocketAddr.sin6_addr );
+    return IN6_IS_ADDR_UNSPECIFIED( &m_SocketAddr.sin6_addr ) || IN6_ARE_ADDR_EQUAL( &m_SocketAddr.sin6_addr, &v4_anyaddr);
 }
 
 /// NOTE: Does NOT clear the Port stored. Ony the Address and Type.