aboutsummaryrefslogtreecommitdiff
path: root/lib/doh.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-05-26 11:07:06 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-05-26 17:37:39 +0200
commit67d2802deabd179552bf957d344b7dd74cbb64d8 (patch)
treef87adaf9a9c3dcf3ed0a6461d2d621f489839b2a /lib/doh.c
parent96a822f6e2de3df00c94bd74a5981032678da70a (diff)
hostip: on macOS avoid DoH when given a numerical IP address
When USE_RESOLVE_ON_IPS is set (defined on macOS), it means that numerical IP addresses still need to get "resolved" - but not with DoH. Reported-by: Viktor Szakats Fixes #5454 Closes #5459
Diffstat (limited to 'lib/doh.c')
-rw-r--r--lib/doh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/doh.c b/lib/doh.c
index 98b201462..8f9e42c33 100644
--- a/lib/doh.c
+++ b/lib/doh.c
@@ -389,6 +389,7 @@ struct Curl_addrinfo *Curl_doh(struct connectdata *conn,
/* start clean, consider allocating this struct on demand */
memset(&data->req.doh, 0, sizeof(struct dohdata));
+ conn->bits.doh = TRUE;
data->req.doh.host = hostname;
data->req.doh.port = port;
data->req.doh.headers =