Skip to content
Snippets Groups Projects
Commit 3d5732d4 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Rick Richardson's getaddrinfo() usage fix to speed up name resolves

parent b7959298
No related branches found
No related tags found
No related merge requests found
......@@ -292,7 +292,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data,
char sbuf[NI_MAXSERV];
memset(&hints, 0, sizeof(hints));
hints.ai_family = PF_UNSPEC;
hints.ai_family = PF_INET;
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_CANONNAME;
snprintf(sbuf, sizeof(sbuf), "%d", port);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment