diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-05-26 11:07:06 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-05-26 17:37:39 +0200 |
commit | 67d2802deabd179552bf957d344b7dd74cbb64d8 (patch) | |
tree | f87adaf9a9c3dcf3ed0a6461d2d621f489839b2a /lib/doh.c | |
parent | 96a822f6e2de3df00c94bd74a5981032678da70a (diff) | |
download | curl-67d2802deabd179552bf957d344b7dd74cbb64d8.tar.gz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 = |