diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-05-26 08:54:36 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-05-26 08:54:36 +0000 |
commit | 2c43d64302cc58532768e7e98fceb0e3032950cc (patch) | |
tree | 78aa417739b461b031cf80d8407e3de9cd6337f5 /lib/ftp.c | |
parent | fd802db39f77fa3985d20e461742bf24644065d6 (diff) |
Added a new 'bit' in the connect struct named 'tunnel_proxy' that is set
if a connection is tunneled through a proxy. A tunnel is done with CONNECT,
either when using HTTPS or FTPS, or if explicitly enabled by the app.
Diffstat (limited to 'lib/ftp.c')
-rw-r--r-- | lib/ftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -487,7 +487,7 @@ CURLcode Curl_ftp_connect(struct connectdata *conn) ftp->passwd = conn->passwd; ftp->response_time = 3600; /* set default response time-out */ - if (data->set.tunnel_thru_httpproxy) { + if (conn->bits.tunnel_proxy) { /* We want "seamless" FTP operations through HTTP proxy tunnel */ result = Curl_ConnectHTTPProxyTunnel(conn, FIRSTSOCKET, conn->host.name, conn->remote_port); @@ -1702,7 +1702,7 @@ CURLcode ftp_use_pasv(struct connectdata *conn, /* this just dumps information about this second connection */ ftp_pasv_verbose(conn, conninfo, newhostp, connectport); - if(data->set.tunnel_thru_httpproxy) { + if(conn->bits.tunnel_proxy) { /* We want "seamless" FTP operations through HTTP proxy tunnel */ result = Curl_ConnectHTTPProxyTunnel(conn, SECONDARYSOCKET, newhostp, newport); |