changeset 625:edac1485308d

Socks5 support stuff, not finished yet (as SOCKS5 needs to be implemented in th_network)
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 21 Jun 2014 03:02:43 +0300
parents 24d97c710497
children 904c359b1ced
files main.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;