Skip to content

Commit fb2aff3

Browse files
committed
change curl-dns to curl-dns2
1 parent a07038a commit fb2aff3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

loader/resources/mod.json.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
"name": "Verbose Curl Logs",
161161
"description": "When performing web requests, prints detailed information about the request immediately, as well as information when requests are added/removed. Otherwise, some information will only be printed on request failure."
162162
},
163-
"curl-dns": {
163+
"curl-dns2": {
164164
"type": "string",
165165
"name": "Web DNS Server",
166166
"default": "System",

loader/src/utils/web.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,8 @@ class WebRequest::Impl {
643643
curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, sslOptions);
644644

645645
// Set DNS options
646-
auto dnsopt = Mod::get()->getSettingValue<std::string_view>("curl-dns");
646+
// This is called curl-dns2 because we decided to change the default value later :)
647+
auto dnsopt = Mod::get()->getSettingValue<std::string_view>("curl-dns2");
647648
setDNSOptions(curl, dnsopt);
648649

649650
// Transfer body

0 commit comments

Comments
 (0)