Commit e5472bbd authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

AF_INET6 for ipv6 addresses!

parent 957c258c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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));
    }