]> granicus.if.org Git - curl/commitdiff
AF_INET6 for ipv6 addresses!
authorDaniel Stenberg <daniel@haxx.se>
Thu, 28 Apr 2005 14:31:25 +0000 (14:31 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 28 Apr 2005 14:31:25 +0000 (14:31 +0000)
tests/server/sockfilt.c

index a174f902e2ce76ccb31efe1ff246b3307dc4eaf3..cf6cc499fc5cf86d8ed6e78f814435aeb9d6c507 100644 (file)
@@ -582,7 +582,7 @@ int main(int argc, char *argv[])
       memset(&me6, 0, sizeof(me6));
       me6.sin6_family = AF_INET6;
       me6.sin6_port = htons(connectport);
-      Curl_inet_pton(AF_INET, "::1", &me6.sin6_addr);
+      Curl_inet_pton(AF_INET6, "::1", &me6.sin6_addr);
 
       rc = connect(sock, (struct sockaddr *) &me6, sizeof(me6));
     }