add DNS.WATCH and Quad9

closes #94
This commit is contained in:
Cloudburst 2022-09-10 18:37:48 +02:00
parent 2db09e0c9a
commit 9431cde2f9
7 changed files with 27 additions and 61 deletions

View file

@ -65,3 +65,23 @@ fun OkHttpClient.Builder.addAdGuardDns() = (
"94.140.14.141", "94.140.14.141",
) )
)) ))
fun OkHttpClient.Builder.addDNSWatchDns() = (
addGenericDns(
"https://resolver2.dns.watch/dns-query",
// https://dns.watch/
listOf(
"84.200.69.80",
"84.200.70.40",
)
))
fun OkHttpClient.Builder.addQuad9Dns() = (
addGenericDns(
"https://dns.quad9.net/dns-query",
// https://www.quad9.net/service/service-addresses-and-features
listOf(
"9.9.9.9",
"149.112.112.112",
)
))

View file

@ -36,6 +36,8 @@ fun Requests.initClient(context: Context): OkHttpClient {
2 -> addCloudFlareDns() 2 -> addCloudFlareDns()
// 3 -> addOpenDns() // 3 -> addOpenDns()
4 -> addAdGuardDns() 4 -> addAdGuardDns()
5 -> addDNSWatchDns()
6 -> addQuad9Dns()
} }
} }
// Needs to be build as otherwise the other builders will change this object // Needs to be build as otherwise the other builders will change this object

View file

@ -14,21 +14,6 @@
<item>@id/cast_button_type_forward_30_seconds</item> <item>@id/cast_button_type_forward_30_seconds</item>
</array> </array>
<array name="dns_pref">
<item>@string/none</item>
<item>Google</item>
<item>Cloudflare</item>
<!-- <item>OpenDns</item>-->
<item>AdGuard</item>
</array>
<array name="dns_pref_values">
<item>0</item>
<item>1</item>
<item>2</item>
<!-- <item>3</item>-->
<item>4</item>
</array>
<array name="media_type_pref"> <array name="media_type_pref">
<item>Todos</item> <item>Todos</item>
<item>Películas y TV</item> <item>Películas y TV</item>

View file

@ -14,21 +14,6 @@
<item>@id/cast_button_type_forward_30_seconds</item> <item>@id/cast_button_type_forward_30_seconds</item>
</array> </array>
<array name="dns_pref">
<item>@string/none</item>
<item>Google</item>
<item>Cloudflare</item>
<!-- <item>OpenDns</item>-->
<item>AdGuard</item>
</array>
<array name="dns_pref_values">
<item>0</item>
<item>1</item>
<item>2</item>
<!-- <item>3</item>-->
<item>4</item>
</array>
<string-array name="extension_statuses"> <string-array name="extension_statuses">
<item>Nie działa</item> <item>Nie działa</item>
<!-- "Ok" is usually capitalized as "OK". Ok android studio 🤓--> <!-- "Ok" is usually capitalized as "OK". Ok android studio 🤓-->

View file

@ -14,21 +14,6 @@
<item>@id/cast_button_type_forward_30_seconds</item> <item>@id/cast_button_type_forward_30_seconds</item>
</array> </array>
<array name="dns_pref">
<item>@string/none</item>
<item>Google</item>
<item>Cloudflare</item>
<!-- <item>OpenDns</item>-->
<item>AdGuard</item>
</array>
<array name="dns_pref_values">
<item>0</item>
<item>1</item>
<item>2</item>
<!-- <item>3</item>-->
<item>4</item>
</array>
<array name="media_type_pref"> <array name="media_type_pref">
<item>Hepsi</item> <item>Hepsi</item>
<item>Film ve Dizi</item> <item>Film ve Dizi</item>

View file

@ -14,21 +14,6 @@
<item>@id/cast_button_type_forward_30_seconds</item> <item>@id/cast_button_type_forward_30_seconds</item>
</array> </array>
<array name="dns_pref">
<item>@string/none</item>
<item>Google</item>
<item>Cloudflare</item>
<!-- <item>OpenDns</item>-->
<item>AdGuard</item>
</array>
<array name="dns_pref_values">
<item>0</item>
<item>1</item>
<item>2</item>
<!-- <item>3</item>-->
<item>4</item>
</array>
<array name="media_type_pref"> <array name="media_type_pref">
<item>Tất cả</item> <item>Tất cả</item>
<item>Phim lẻ và Phim bộ</item> <item>Phim lẻ và Phim bộ</item>

View file

@ -20,6 +20,8 @@
<item>Cloudflare</item> <item>Cloudflare</item>
<!-- <item>OpenDns</item>--> <!-- <item>OpenDns</item>-->
<item>AdGuard</item> <item>AdGuard</item>
<item>DNS.WATCH</item>
<item>Quad9</item>
</array> </array>
<array name="dns_pref_values"> <array name="dns_pref_values">
<item>0</item> <item>0</item>
@ -27,6 +29,8 @@
<item>2</item> <item>2</item>
<!-- <item>3</item>--> <!-- <item>3</item>-->
<item>4</item> <item>4</item>
<item>5</item>
<item>6</item>
</array> </array>
<array name="limit_title_rez_pref_names"> <array name="limit_title_rez_pref_names">