changeset 113:059f48a04024

Set auth method.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 21 Jun 2014 22:59:36 +0300
parents 5403f0d2d692
children b44a0308b53f
files th_network.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/th_network.c	Sat Jun 21 22:58:31 2014 +0300
+++ b/th_network.c	Sat Jun 21 22:59:36 2014 +0300
@@ -325,10 +325,12 @@
     {
         case TH_PROXY_AUTH_NONE:
             avail = 1;
+            auth = TH_SOCKS5_AUTH_NONE;
             break;
 
         case TH_PROXY_AUTH_USER:
             avail = 2;
+            auth = TH_SOCKS5_AUTH_USER;
             if (conn->proxy.userid == NULL || conn->proxy.passwd == NULL)
             {
                 err = THERR_INVALID_DATA;