quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

commit 9eae4130e59e3f4224122d995a02a8bd95d4529f
parent c23dc56b2ac0dc3445797d2e83e8fac6497ebbc0
Author: Florian Dold <florian@dold.me>
Date:   Mon, 22 Jan 2024 23:28:32 +0100

explicitly set DNS server (possible required on iOS)

Diffstat:
Mquickjs/quickjs-libc.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/quickjs/quickjs-libc.c b/quickjs/quickjs-libc.c @@ -2357,6 +2357,7 @@ 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_URL, req_url); + curl_easy_setopt(req_context->curl, CURLOPT_DNS_SERVERS, "8.8.8.8"); 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);