]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/commitdiff
Don't use AI_V4MAPPED in getaddrinfo().
authorSimon Ruderich <simon@ruderich.org>
Mon, 2 Dec 2013 04:25:41 +0000 (05:25 +0100)
committerSimon Ruderich <simon@ruderich.org>
Mon, 2 Dec 2013 04:25:41 +0000 (05:25 +0100)
It shouldn't be necessary anymore and fails on FreeBSD 8/9.

src/connection.c
tests/client.c

index 0d287491e861b9ad87f2d3844d592fc066768324..793e4680ebfc6c9312498298a6a4737e5513f2a8 100644 (file)
@@ -844,7 +844,7 @@ static int connect_to_host(const char *hostname, const char *port) {
     gai_hints.ai_protocol = 0;
     gai_hints.ai_flags    = AI_NUMERICSERV /* given port is numeric */
                           | AI_ADDRCONFIG  /* supported by this computer */
-                          | AI_V4MAPPED;   /* support IPv4 through IPv6 */
+                          ;
     gai_return = getaddrinfo(hostname, port, &gai_hints, &gai_result);
     if (gai_return != 0) {
         if (gai_return == EAI_SYSTEM) {
index fe10c8ce8b1f0983375797b1d44dcc9c548d1abe..23dca4b3c580dbac340c42be38f4b0d18118b19d 100644 (file)
@@ -225,7 +225,7 @@ static int connect_to_host(const char *hostname, const char *port) {
     gai_hints.ai_protocol = 0;
     gai_hints.ai_flags    = AI_NUMERICSERV /* given port is numeric */
                           | AI_ADDRCONFIG  /* supported by this computer */
-                          | AI_V4MAPPED;   /* support IPv4 through IPv6 */
+                          ;
     gai_return = getaddrinfo(hostname, port, &gai_hints, &gai_result);
     if (gai_return != 0) {
         if (gai_return == EAI_SYSTEM) {