diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-04-08 16:40:51 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-04-08 16:40:51 +0200 |
commit | 190b5a92c7ffda63842a67b380acd255f89bf993 (patch) | |
tree | 395f13c5874e8f133cb3ff7d41032f1ae3bba25f | |
parent | 45a27e13c748bb021c6e9fe0576fb3d72f70586d (diff) | |
download | curl-bagder/mac-broken-ipv6.tar.gz |
server/resolve: remove AI_CANONNAME to make macos tell the truthbagder/mac-broken-ipv6
With this bit set, my mac successfully resolves "ip6-localhost" when in
fact there is no such host known to my machine. That in turn made test
241 execute and fail.
-rw-r--r-- | tests/server/resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/server/resolve.c b/tests/server/resolve.c index fe3cca1b2..f72561879 100644 --- a/tests/server/resolve.c +++ b/tests/server/resolve.c @@ -127,7 +127,7 @@ int main(int argc, char *argv[]) memset(&hints, 0, sizeof(hints)); hints.ai_family = use_ipv6 ? PF_INET6 : PF_INET; hints.ai_socktype = SOCK_STREAM; - hints.ai_flags = AI_CANONNAME; + hints.ai_flags = 0; /* Use parenthesis around functions to stop them from being replaced by the macro in memdebug.h */ rc = (getaddrinfo)(host, "80", &hints, &ai); |