commit a60a36df6633950fd12b68e2d81f2f45a69bb40a
parent 626e1bdbed5ef400c6eb88a4af8254b30d375f9f
Author: Marc Stibane <marc@taler.net>
Date: Sun, 28 Jan 2024 13:30:54 +0100
Quad9 instead of Google DNS
(cherry picked from commit 85735f8e9e078149ffd1237dfda97d421ab53bbf)
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/quickjs/quickjs-libc.c b/quickjs/quickjs-libc.c
@@ -2359,7 +2359,8 @@ static JSValue js_os_fetchHttp(JSContext *ctx, JSValueConst this_val,
curl_easy_setopt(req_context->curl, CURLOPT_PRIVATE, req_context);
curl_easy_setopt(req_context->curl, CURLOPT_SHARE, ts->curlsh);
curl_easy_setopt(req_context->curl, CURLOPT_URL, req_url);
- curl_easy_setopt(req_context->curl, CURLOPT_DNS_SERVERS, "8.8.8.8");
+// curl_easy_setopt(req_context->curl, CURLOPT_DNS_SERVERS, "8.8.8.8");
+ curl_easy_setopt(req_context->curl, CURLOPT_DNS_SERVERS, "9.9.9.9");
curl_easy_setopt(req_context->curl, CURLOPT_USERAGENT, "qtart");
curl_easy_setopt(req_context->curl, CURLOPT_CAINFO, "/etc/ssl/certs/ca-certificates.crt");
curl_easy_setopt(req_context->curl, CURLOPT_HEADERFUNCTION, curl_header_callback);