aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-02-18 23:12:37 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-02-18 23:12:37 +0000
commit3d5732d4e051c503af0b000e1cc81cbcf04490a4 (patch)
tree7bc4d2613ca7ede516d6e54a1d91a539417d2a8c /lib/hostip.c
parentb795929858e7b8ebe42ad5a502a5d0bd569d5745 (diff)
Rick Richardson's getaddrinfo() usage fix to speed up name resolves
Diffstat (limited to 'lib/hostip.c')
-rw-r--r--lib/hostip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 0118ebd5d..711d1550e 100644
--- 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);