parent acb0225699
author Finnley Somdahl <87634197+rebelonion@users.noreply.github.com> 1698992132 -0500 committer Finnley Somdahl <87634197+rebelonion@users.noreply.github.com> 1698992691 -0500 manga downloading base Update README.md Update README.md Update README.md Update README.md Update README.md
This commit is contained in:
parent
acb0225699
commit
20acd71b1a
24 changed files with 763 additions and 64 deletions
|
@ -21,6 +21,7 @@ const val PREF_DOH_MULLVAD = 9
|
|||
const val PREF_DOH_CONTROLD = 10
|
||||
const val PREF_DOH_NJALLA = 11
|
||||
const val PREF_DOH_SHECAN = 12
|
||||
const val PREF_DOH_LIBREDNS = 13
|
||||
|
||||
fun OkHttpClient.Builder.dohCloudflare() = dns(
|
||||
DnsOverHttps.Builder().client(build())
|
||||
|
@ -184,3 +185,13 @@ fun OkHttpClient.Builder.dohShecan() = dns(
|
|||
)
|
||||
.build(),
|
||||
)
|
||||
|
||||
fun OkHttpClient.Builder.dohLibreDNS() = dns(
|
||||
DnsOverHttps.Builder().client(build())
|
||||
.url("https://doh.libredns.gr/dns-query".toHttpUrl())
|
||||
.bootstrapDnsHosts(
|
||||
InetAddress.getByName("116.202.176.26"), // IPv4 address for LibreDNS
|
||||
InetAddress.getByName("192.71.166.92") // Fallback IPv4 address
|
||||
)
|
||||
.build()
|
||||
)
|
||||
|
|
|
@ -62,6 +62,7 @@ class NetworkHelper(
|
|||
PREF_DOH_CONTROLD -> builder.dohControlD()
|
||||
PREF_DOH_NJALLA -> builder.dohNajalla()
|
||||
PREF_DOH_SHECAN -> builder.dohShecan()
|
||||
PREF_DOH_LIBREDNS -> builder.dohLibreDNS()
|
||||
}
|
||||
|
||||
return builder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue