summaryrefslogtreecommitdiff
path: root/lib/setopt.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-09-06 09:16:02 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-09-06 09:17:17 +0200
commitabff183387ae7e4a0bb7cbdd653ff64aeb1840a7 (patch)
tree8a02613ee4ac2ac53a9109f3715a8a4de5dd5a40 /lib/setopt.c
parent3f3b26d6feb0667714902e836af608094235fca2 (diff)
downloadcurl-abff183387ae7e4a0bb7cbdd653ff64aeb1840a7.tar.gz
setopt: add CURLOPT_DOH_URL
Closes #2668
Diffstat (limited to 'lib/setopt.c')
-rw-r--r--lib/setopt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/setopt.c b/lib/setopt.c
index 66636a2da..475a33798 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -2603,6 +2603,11 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option,
data->set.disallow_username_in_url =
(0 != va_arg(param, long)) ? TRUE : FALSE;
break;
+ case CURLOPT_DOH_URL:
+ result = Curl_setstropt(&data->set.str[STRING_DOH],
+ va_arg(param, char *));
+ data->set.doh = data->set.str[STRING_DOH]?TRUE:FALSE;
+ break;
default:
/* unknown tag and its companion, just ignore: */
result = CURLE_UNKNOWN_OPTION;