Change 0ms DNS to Large variant

To prevent users from getting rate limited while still receiving the benefits of OISD Big and other security filters, using the "Large" variant is highly recommended for mission-critical applications or big networks.
This commit is contained in:
nya~
2024-06-02 12:11:40 +07:00
parent 18169c2355
commit 3498a54bdf

View File

@@ -85,9 +85,13 @@ class DoHManager(
).build()
DoHProvider.ZERO_MS -> DnsOverHttps.Builder().client(bootstrapClient)
.url("https://0ms.dev/dns-query".toHttpUrl())
.resolvePublicAddresses(true)
.build()
.url("https://2ca4h4crra.cloudflare-gateway.com/dns-query".toHttpUrl())
.resolvePrivateAddresses(true)
.bootstrapDnsHosts(
listOfNotNull(
tryGetByIp("2a06:98c1:54::384a"),
),
).build()
}
private fun tryGetByIp(ip: String): InetAddress? = try {