mirror of
https://github.com/curl/curl.git
synced 2025-04-24 16:40:32 +08:00
server/resolve: remove AI_CANONNAME to make macos tell the truth
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 wrongly execute and fail. Closes #5202
This commit is contained in:
parent
07778542b3
commit
cb232b13de
@ -127,7 +127,7 @@ int main(int argc, char *argv[])
|
|||||||
memset(&hints, 0, sizeof(hints));
|
memset(&hints, 0, sizeof(hints));
|
||||||
hints.ai_family = use_ipv6 ? PF_INET6 : PF_INET;
|
hints.ai_family = use_ipv6 ? PF_INET6 : PF_INET;
|
||||||
hints.ai_socktype = SOCK_STREAM;
|
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
|
/* Use parenthesis around functions to stop them from being replaced by
|
||||||
the macro in memdebug.h */
|
the macro in memdebug.h */
|
||||||
rc = (getaddrinfo)(host, "80", &hints, &ai);
|
rc = (getaddrinfo)(host, "80", &hints, &ai);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user