From 5b75e5598ec0dde11698a862e86d9ef8c5407726 Mon Sep 17 00:00:00 2001 From: Christos Tsantilas Date: Wed, 29 Jun 2011 21:23:57 -0600 Subject: [PATCH] Ip::Address::IsAnyAddr did not return true for IPv4-only anyaddr --- src/ip/IpAddress.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ip/IpAddress.cc b/src/ip/IpAddress.cc index f13da467ad..eafd899c4e 100644 --- a/src/ip/IpAddress.cc +++ b/src/ip/IpAddress.cc @@ -199,7 +199,7 @@ bool IpAddress::IsIPv6() const bool IpAddress::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. -- 2.47.2