Make setopt() support CURLOPT_IPRESOLVE...
authorDaniel Stenberg <daniel@haxx.se>
Fri, 19 Dec 2003 08:10:09 +0000 (08:10 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 19 Dec 2003 08:10:09 +0000 (08:10 +0000)
lib/url.c

index 1584f91..cd8ce5f 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -1258,6 +1258,10 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
     data->set.ftp_ssl = va_arg(param, long);
     break;
 
+  case CURLOPT_IPRESOLVE:
+    data->set.ip_version = va_arg(param, long);
+    break;
+
   default:
     /* unknown tag and its companion, just ignore: */
     return CURLE_FAILED_INIT; /* correct this */