diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-05-09 10:58:04 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-05-11 11:38:58 +0200 |
commit | 12d655d4561cfee0103c57e791c59a263863e561 (patch) | |
tree | cc271bc27c77189fe5c52cea5e412af0f915b7ad /lib/socks.c | |
parent | edf2f6a6f60debd80ae3cef7a68fb84faaef7c5d (diff) | |
download | curl-12d655d4561cfee0103c57e791c59a263863e561.tar.gz |
doh: disable DOH for the cases it doesn't work
Due to limitations in Curl_resolver_wait_resolv(), it doesn't work for
DOH resolves. This fix disables DOH for those.
Limitation added to KNOWN_BUGS.
Fixes #3850
Closes #3857
Diffstat (limited to 'lib/socks.c')
-rw-r--r-- | lib/socks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/socks.c b/lib/socks.c index c9589bbf9..d8fcc3bbb 100644 --- a/lib/socks.c +++ b/lib/socks.c @@ -155,7 +155,7 @@ CURLcode Curl_SOCKS4(const char *proxy_user, Curl_addrinfo *hp = NULL; int rc; - rc = Curl_resolv(conn, hostname, remote_port, &dns); + rc = Curl_resolv(conn, hostname, remote_port, FALSE, &dns); if(rc == CURLRESOLV_ERROR) return CURLE_COULDNT_RESOLVE_PROXY; @@ -609,7 +609,7 @@ CURLcode Curl_SOCKS5(const char *proxy_user, else { struct Curl_dns_entry *dns; Curl_addrinfo *hp = NULL; - int rc = Curl_resolv(conn, hostname, remote_port, &dns); + int rc = Curl_resolv(conn, hostname, remote_port, FALSE, &dns); if(rc == CURLRESOLV_ERROR) return CURLE_COULDNT_RESOLVE_HOST; |