From d698d035216ad08cefe278de8c537a3d9969b367 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 12 Feb 2022 22:08:12 -0500 Subject: [PATCH] Fix Quad9 DoH setting --- .../main/java/eu/kanade/tachiyomi/network/DohProviders.kt | 5 +++-- .../main/java/eu/kanade/tachiyomi/network/NetworkHelper.kt | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/network/DohProviders.kt b/app/src/main/java/eu/kanade/tachiyomi/network/DohProviders.kt index d73e45401..9a6d5cd2a 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/network/DohProviders.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/network/DohProviders.kt @@ -26,7 +26,7 @@ fun OkHttpClient.Builder.dohCloudflare() = dns( InetAddress.getByName("2606:4700:4700::1111"), InetAddress.getByName("2606:4700:4700::1001"), InetAddress.getByName("2606:4700:4700::0064"), - InetAddress.getByName("2606:4700:4700::6400") + InetAddress.getByName("2606:4700:4700::6400"), ) .build() ) @@ -43,7 +43,8 @@ fun OkHttpClient.Builder.dohGoogle() = dns( .build() ) -// AdGuard "Default" DNS works too but for the sake of making sure no site is blacklisted, i picked "Unfiltered" +// AdGuard "Default" DNS works too but for the sake of making sure no site is blacklisted, +// we use "Unfiltered" fun OkHttpClient.Builder.dohAdGuard() = dns( DnsOverHttps.Builder().client(build()) .url("https://dns-unfiltered.adguard.com/dns-query".toHttpUrl()) diff --git a/app/src/main/java/eu/kanade/tachiyomi/network/NetworkHelper.kt b/app/src/main/java/eu/kanade/tachiyomi/network/NetworkHelper.kt index 0e522455f..fed5d23be 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/network/NetworkHelper.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/network/NetworkHelper.kt @@ -41,7 +41,7 @@ class NetworkHelper(context: Context) { PREF_DOH_CLOUDFLARE -> builder.dohCloudflare() PREF_DOH_GOOGLE -> builder.dohGoogle() PREF_DOH_ADGUARD -> builder.dohAdGuard() - PREF_DOH_QUAD9 -> builder.dohAdGuard() + PREF_DOH_QUAD9 -> builder.dohQuad9() } return builder