1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

more SOCKS5_HOSTNAME adjustments from Richard Atterer

This commit is contained in:
Daniel Stenberg 2008-01-06 21:41:38 +00:00
parent 7138296633
commit f111c9edae
2 changed files with 2 additions and 1 deletions

View File

@ -1882,6 +1882,7 @@ static CURLcode ftp_state_pasv_resp(struct connectdata *conn,
switch(data->set.proxytype) {
case CURLPROXY_SOCKS5:
case CURLPROXY_SOCKS5_HOSTNAME:
result = Curl_SOCKS5(conn->proxyuser, conn->proxypasswd, newhost, newport,
SECONDARYSOCKET, conn);
break;

View File

@ -1868,7 +1868,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
case CURLOPT_PROXYTYPE:
/*
* Set proxy type. HTTP/SOCKS4/SOCKS4a/SOCKS5
* Set proxy type. HTTP/SOCKS4/SOCKS4a/SOCKS5/SOCKS5_HOSTNAME
*/
data->set.proxytype = (curl_proxytype)va_arg(param, long);
break;