# HG changeset patch # User Matti Hamalainen # Date 1403308963 -10800 # Node ID edac1485308db217dbd53e0ae3c44b6bdc290719 # Parent 24d97c71049742db38cd41e0f5b4cde2f865b8b0 Socks5 support stuff, not finished yet (as SOCKS5 needs to be implemented in th_network) diff -r 24d97c710497 -r edac1485308d main.c --- a/main.c Sat Jun 21 02:56:14 2014 +0300 +++ b/main.c Sat Jun 21 03:02:43 2014 +0300 @@ -199,6 +199,11 @@ if (strcasecmp(proto, "socks4a") == 0) optProxyType = TH_PROXY_SOCKS4A; else + /* + if (strcasecmp(proto, "socks5") == 0) + optProxyType = TH_PROXY_SOCKS5; + else + */ { THERR("Invalid proxy type specified: '%s'\n", proto); goto out; @@ -239,12 +244,10 @@ optProxyServer = th_strdup(host); // Check what authentication type to use -/* if (optProxyType == TH_PROXY_SOCKS5 && optProxyUserID != NULL && optProxyPassword != NULL) optProxyAuthType = TH_PROXY_AUTH_USER; else -*/ optProxyAuthType = TH_PROXY_AUTH_NONE; ret = TRUE;