From c574cb7905bc8d63d65ca10b165d8a43be613602 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Tue, 28 Aug 2012 21:14:58 -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 5c0946124a..d511c9d895 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