X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=src%2Fconnection.c;h=2c70b7d4f082f8fa9de3b256685e91ec23be3fc9;hb=61041fcbfedb13bacd16cd11a9bd0fb5446b7abb;hp=ad7298a876033dd3b37e7303901506c9f4b9b463;hpb=730ce301477d9d5c9367756bad840eb4504e0257;p=tlsproxy%2Ftlsproxy.git diff --git a/src/connection.c b/src/connection.c index ad7298a..2c70b7d 100644 --- a/src/connection.c +++ b/src/connection.c @@ -207,7 +207,7 @@ void handle_connection(int client_socket) { LOG(DEBUG1, "connection to server established"); /* If the -u option is used and we don't know this hostname's server - * certificate then just pass through the connection and let the client + * certificate, then just pass through the connection and let the client * verify the server certificate. */ if (global_passthrough_unknown) { char path[TLSPROXY_MAX_PATH_LENGTH]; @@ -844,7 +844,9 @@ static int connect_to_host(const char *hostname, const char *port) { gai_hints.ai_socktype = SOCK_STREAM; gai_hints.ai_protocol = 0; gai_hints.ai_flags = AI_NUMERICSERV /* given port is numeric */ +#ifdef AI_ADDRCONFIG | AI_ADDRCONFIG /* supported by this computer */ +#endif ; gai_return = getaddrinfo(hostname, port, &gai_hints, &gai_result); if (gai_return != 0) {