aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-03-15 08:45:09 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-03-15 08:45:09 +0000
commit3cd267307764a979df61618540e067d147a63feb (patch)
tree210e99ec581d3750c04c3b2e02b43a2a94d7f40a /lib
parentd242214e18bee2c300c1888d5f8f80313fd60b11 (diff)
bug report #530204 correctly identified that revision 1.52 broke ipv6
functionality and this change reverts this. However, with this revert we bring back problems on (some/all?) non-IPv6 enabled Linux machines that have getaddrinfo().
Diffstat (limited to 'lib')
-rw-r--r--lib/hostip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 2e973f887..412844c3b 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 2001, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2002, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* In order to be useful for every potential user, curl and libcurl are
* dual-licensed under the MPL and the MIT/X-derivate licenses.
@@ -293,7 +293,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data,
char sbuf[NI_MAXSERV];
memset(&hints, 0, sizeof(hints));
- hints.ai_family = PF_INET;
+ hints.ai_family = PF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_CANONNAME;
snprintf(sbuf, sizeof(sbuf), "%d", port);