From 3db830d375beac634aceca2fa73b772ea5dfd39c Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Fri, 10 Aug 2012 21:21:14 -0600 Subject: [PATCH] MacOS: fix AddrInfo default flags --- src/ip/Address.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ip/Address.cc b/src/ip/Address.cc index aff975f835..dda6fa12c7 100644 --- a/src/ip/Address.cc +++ b/src/ip/Address.cc @@ -631,7 +631,12 @@ Ip::Address::GetAddrInfo(struct addrinfo *&dst, int force) const memset(dst, 0, sizeof(struct addrinfo)); // set defaults + // Mac OS X does not emit a flag indicating the output is numeric (IP address) +#if _SQUID_APPLE_ + dst->ai_flags = 0; +#else dst->ai_flags = AI_NUMERICHOST; +#endif if (dst->ai_socktype == 0) dst->ai_socktype = SOCK_STREAM; -- 2.47.2