From 67d2802deabd179552bf957d344b7dd74cbb64d8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 26 May 2020 11:07:06 +0200 Subject: 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 --- lib/doh.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/doh.c') 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 = -- cgit v1.2.3