aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-14 12:00:53 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-14 12:00:53 +0000
commitb23dbf9f3483cf7b8779399675f52704115de850 (patch)
tree6ba0af567585ae9d5a94c6ad6168f82e6ab80cae /src/main.c
parent1d0b5b507a138062e7bb033ea11e272df919f243 (diff)
Gisle Vanem made the -4/-6 actually get set too
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 36fc298d7..f0213ee96 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3356,6 +3356,13 @@ operate(struct Configurable *config, int argc, char *argv[])
curl_easy_setopt(curl, CURLOPT_MAXFILESIZE_LARGE,
config->max_filesize);
+ if(4 == config->ip_version)
+ curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
+ else if(6 == config->ip_version)
+ curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V6);
+ else
+ curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_WHATEVER);
+
/* new in curl 7.11.0 */
if(config->ftp_ssl)
curl_easy_setopt(curl, CURLOPT_FTP_SSL, CURLFTPSSL_TRY);