1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

AF_INET6 for ipv6 addresses!

This commit is contained in:
Daniel Stenberg 2005-04-28 14:31:25 +00:00
parent 957c258c6d
commit e5472bbd21

View File

@ -582,7 +582,7 @@ int main(int argc, char *argv[])
memset(&me6, 0, sizeof(me6)); memset(&me6, 0, sizeof(me6));
me6.sin6_family = AF_INET6; me6.sin6_family = AF_INET6;
me6.sin6_port = htons(connectport); 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)); rc = connect(sock, (struct sockaddr *) &me6, sizeof(me6));
} }