forked from recloudstream/cloudstream
parent
2db09e0c9a
commit
9431cde2f9
7 changed files with 27 additions and 61 deletions
|
@ -64,4 +64,24 @@ fun OkHttpClient.Builder.addAdGuardDns() = (
|
|||
"94.140.14.140",
|
||||
"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",
|
||||
)
|
||||
))
|
|
@ -36,6 +36,8 @@ fun Requests.initClient(context: Context): OkHttpClient {
|
|||
2 -> addCloudFlareDns()
|
||||
// 3 -> addOpenDns()
|
||||
4 -> addAdGuardDns()
|
||||
5 -> addDNSWatchDns()
|
||||
6 -> addQuad9Dns()
|
||||
}
|
||||
}
|
||||
// Needs to be build as otherwise the other builders will change this object
|
||||
|
|
|
@ -14,21 +14,6 @@
|
|||
<item>@id/cast_button_type_forward_30_seconds</item>
|
||||
</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">
|
||||
<item>Todos</item>
|
||||
<item>Películas y TV</item>
|
||||
|
|
|
@ -14,21 +14,6 @@
|
|||
<item>@id/cast_button_type_forward_30_seconds</item>
|
||||
</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">
|
||||
<item>Nie działa</item>
|
||||
<!-- "Ok" is usually capitalized as "OK". Ok android studio 🤓-->
|
||||
|
|
|
@ -14,21 +14,6 @@
|
|||
<item>@id/cast_button_type_forward_30_seconds</item>
|
||||
</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">
|
||||
<item>Hepsi</item>
|
||||
<item>Film ve Dizi</item>
|
||||
|
|
|
@ -14,21 +14,6 @@
|
|||
<item>@id/cast_button_type_forward_30_seconds</item>
|
||||
</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">
|
||||
<item>Tất cả</item>
|
||||
<item>Phim lẻ và Phim bộ</item>
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
<item>Cloudflare</item>
|
||||
<!-- <item>OpenDns</item>-->
|
||||
<item>AdGuard</item>
|
||||
<item>DNS.WATCH</item>
|
||||
<item>Quad9</item>
|
||||
</array>
|
||||
<array name="dns_pref_values">
|
||||
<item>0</item>
|
||||
|
@ -27,6 +29,8 @@
|
|||
<item>2</item>
|
||||
<!-- <item>3</item>-->
|
||||
<item>4</item>
|
||||
<item>5</item>
|
||||
<item>6</item>
|
||||
</array>
|
||||
|
||||
<array name="limit_title_rez_pref_names">
|
||||
|
|
Loading…
Reference in a new issue