make sure we deal with SOCKS5_HOSTNAME as a proxy type as well
authorDaniel Stenberg <daniel@haxx.se>
Sun, 6 Jan 2008 12:56:34 +0000 (12:56 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 6 Jan 2008 12:56:34 +0000 (12:56 +0000)
lib/ftp.c

index ea22cab..9507c6f 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -1727,6 +1727,7 @@ static CURLcode ftp_state_pasv_resp(struct connectdata *conn,
 
           if(conn->bits.tunnel_proxy ||
              data->set.proxytype == CURLPROXY_SOCKS5 ||
+             data->set.proxytype == CURLPROXY_SOCKS5_HOSTNAME ||
              data->set.proxytype == CURLPROXY_SOCKS4 ||
              data->set.proxytype == CURLPROXY_SOCKS4A)
             /* proxy tunnel -> use other host info because ip_addr_str is the
@@ -1782,6 +1783,7 @@ static CURLcode ftp_state_pasv_resp(struct connectdata *conn,
             conn->ip_addr_str);
       if(conn->bits.tunnel_proxy ||
           data->set.proxytype == CURLPROXY_SOCKS5 ||
+          data->set.proxytype == CURLPROXY_SOCKS5_HOSTNAME ||
           data->set.proxytype == CURLPROXY_SOCKS4 ||
           data->set.proxytype == CURLPROXY_SOCKS4A)
         /* proxy tunnel -> use other host info because ip_addr_str is the