diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-09-04 05:16:06 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-09-04 05:16:06 +0000 |
commit | 7e845e7cfdd658caccc60f687d5d5d68d7e88937 (patch) | |
tree | f5937f8827f2f1f9ea2073dd640545045a17c459 /lib/url.c | |
parent | 56d9624b566ac15ffb4b4b6eef220a5000b767e0 (diff) | |
download | curl-7e845e7cfdd658caccc60f687d5d5d68d7e88937.tar.gz |
Added FTP_SKIP_PASV_IP and --ftp-skip-pasv-ip
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -965,6 +965,14 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, data->set.ftp_use_epsv = va_arg(param, long)?TRUE:FALSE; break; + case CURLOPT_FTP_SKIP_PASV_IP: + /* + * Enable or disable FTP_SKIP_PASV_IP, which will disable/enable the + * bypass of the IP address in PASV responses. + */ + data->set.ftp_skip_ip = (bool)va_arg(param, long); + break; + case CURLOPT_INFILE: /* * FILE pointer to read the file to be uploaded from. Or possibly @@ -1240,7 +1248,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, /* * Set a SSL_CTX callback */ - data->set.ssl.fsslctx = va_arg(param, curl_ssl_ctx_callback); + data->set.ssl.fsslctx = va_arg(param, curl_ssl_ctx_callback); break; case CURLOPT_SSL_CTX_DATA: /* |