Skip to content
Snippets Groups Projects
Commit e5472bbd authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

AF_INET6 for ipv6 addresses!

parent 957c258c
No related branches found
No related tags found
No related merge requests found
......@@ -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));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment