Rick Richardson's getaddrinfo() usage fix to speed up name resolves
authorDaniel Stenberg <daniel@haxx.se>
Mon, 18 Feb 2002 23:12:37 +0000 (23:12 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 18 Feb 2002 23:12:37 +0000 (23:12 +0000)
lib/hostip.c

index 0118ebd..711d155 100644 (file)
@@ -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);