curl: --doh-url added

This commit is contained in:
Daniel Stenberg 2018-09-06 09:16:02 +02:00
parent abff183387
commit 5ffbb63e42
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
7 changed files with 21 additions and 1 deletions

View file

@ -1262,6 +1262,9 @@ static CURLcode operate_do(struct GlobalConfig *global,
my_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS,
(long)(config->connecttimeout * 1000));
if(config->doh_url)
my_setopt_str(curl, CURLOPT_DOH_URL, config->doh_url);
if(config->cipher_list)
my_setopt_str(curl, CURLOPT_SSL_CIPHER_LIST, config->cipher_list);