X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=src%2Ftlsproxy.c;h=fa570641b264f87e738f81862f03439bac05b388;hb=730ce301477d9d5c9367756bad840eb4504e0257;hp=751c8604c83e7ae22fb4106eb0a34c27d35a027d;hpb=9f7ef8fa5c5216ac2510d2b4acb3b1b5c26886d1;p=tlsproxy%2Ftlsproxy.git diff --git a/src/tlsproxy.c b/src/tlsproxy.c index 751c860..fa57064 100644 --- a/src/tlsproxy.c +++ b/src/tlsproxy.c @@ -26,13 +26,14 @@ #include #include #include +#include +#include #include #include +#include #include #include #include -#include -#include #if GNUTLS_VERSION_NUMBER <= 0x020b00 /* Necessary for GnuTLS when used with threads. */ @@ -150,9 +151,9 @@ int main(int argc, char **argv) { } #ifdef USE_IPV4_ONLY - server_socket = socket(PF_INET, SOCK_STREAM, 0); + server_socket = socket(AF_INET, SOCK_STREAM, 0); #else - server_socket = socket(PF_INET6, SOCK_STREAM, 0); + server_socket = socket(AF_INET6, SOCK_STREAM, 0); #endif if (server_socket < 0) { perror("socket()"); @@ -191,6 +192,7 @@ int main(int argc, char **argv) { if (global_log_level >= LOG_DEBUG1_LEVEL) { printf("tlsproxy %s\n", VERSION); printf("Listening for connections on port %d.\n", port); + printf("Priority string: %s.\n", PROXY_TLS_PRIORITIES); if (global_proxy_host != NULL && global_proxy_port != NULL) { printf("Using proxy: %s:%s.\n", global_proxy_host,