aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-02-19 11:53:54 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-02-19 11:53:54 +0000
commit17e8d60c01f8f020e3738db855584f23fb892a04 (patch)
tree6ff557b749486c4e40b266583de848c41e9e984e /lib/url.c
parentec1b3513176b6bac4706de2dc6468dcff3a2e63f (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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index 6d1fa0459..692e66c2d 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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");