mirror of
https://github.com/curl/curl.git
synced 2026-06-02 00:24:15 +03:00
Rick Richardson's getaddrinfo() usage fix to speed up name resolves
This commit is contained in:
parent
b795929858
commit
3d5732d4e0
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue