diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-02-19 11:53:54 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-02-19 11:53:54 +0000 |
commit | 17e8d60c01f8f020e3738db855584f23fb892a04 (patch) | |
tree | 6ff557b749486c4e40b266583de848c41e9e984e /lib/url.c | |
parent | ec1b3513176b6bac4706de2dc6468dcff3a2e63f (diff) |
- Robson Braga Araujo made passive FTP transfers work with SOCKS (both 4 and
5).
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2287,13 +2287,15 @@ static CURLcode ConnectPlease(struct SessionHandle *data, switch(data->set.proxytype) { case CURLPROXY_SOCKS5: - result = Curl_SOCKS5(conn->proxyuser, conn->proxypasswd, conn); + result = Curl_SOCKS5(conn->proxyuser, conn->proxypasswd, conn->host.name, + conn->remote_port, FIRSTSOCKET, conn); break; case CURLPROXY_HTTP: /* do nothing here. handled later. */ break; case CURLPROXY_SOCKS4: - result = Curl_SOCKS4(conn->proxyuser, conn); + result = Curl_SOCKS4(conn->proxyuser, conn->host.name, conn->remote_port, + FIRSTSOCKET, conn); break; default: failf(data, "unknown proxytype option given"); |