X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=src%2Fconnection.c;h=ad7298a876033dd3b37e7303901506c9f4b9b463;hb=730ce301477d9d5c9367756bad840eb4504e0257;hp=0d287491e861b9ad87f2d3844d592fc066768324;hpb=c3bbe13023ec0021a18f99d6e9b643d84a3505cb;p=tlsproxy%2Ftlsproxy.git diff --git a/src/connection.c b/src/connection.c index 0d28749..ad7298a 100644 --- a/src/connection.c +++ b/src/connection.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -844,7 +845,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) {