From: Christos Tsantilas Date: Wed, 29 Jun 2011 19:58:09 +0000 (+0300) Subject: Ip::Address::IsAnyAddr did not return true in the case the ip address is an ipv4... X-Git-Tag: take08~55^2~93 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=040bb0955b9061b52400e6cd3507a075195b8192;p=thirdparty%2Fsquid.git Ip::Address::IsAnyAddr did not return true in the case the ip address is an ipv4 anyaddr --- diff --git a/src/ip/Address.cc b/src/ip/Address.cc index 420b968928..310b032110 100644 --- a/src/ip/Address.cc +++ b/src/ip/Address.cc @@ -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.