projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b795929
)
Rick Richardson's getaddrinfo() usage fix to speed up name resolves
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 18 Feb 2002 23:12:37 +0000
(23:12 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 18 Feb 2002 23:12:37 +0000
(23:12 +0000)
lib/hostip.c
patch
|
blob
|
history
diff --git
a/lib/hostip.c
b/lib/hostip.c
index 0118ebd5d8b1ea57e59b91230e4575150a63f8e8..711d1550eb66d9d040119301650ccc407967a4c8 100644
(file)
--- a/
lib/hostip.c
+++ b/
lib/hostip.c
@@
-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);