From d7c64f540bb2e1b9ac835abbacde01b424f32115 Mon Sep 17 00:00:00 2001 From: yenru0 Date: Thu, 8 Oct 2026 17:28:23 +0900 Subject: [PATCH] Gate Cronet engine behind enable_quic (default off) Cronet bypasses the OkHttp DNS/SSL stack and would nullify the anti-DPI hooks. enable_quic is the effective engine switch. --- app/src/main/kotlin/com/hippo/ehviewer/EhApplication.kt | 2 +- app/src/main/kotlin/com/hippo/ehviewer/Settings.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/hippo/ehviewer/EhApplication.kt b/app/src/main/kotlin/com/hippo/ehviewer/EhApplication.kt index 56a5f76f3..bcca10576 100644 --- a/app/src/main/kotlin/com/hippo/ehviewer/EhApplication.kt +++ b/app/src/main/kotlin/com/hippo/ehviewer/EhApplication.kt @@ -219,7 +219,7 @@ class EhApplication : Application(), SingletonImageLoader.Factory { private set val ktorClient by lazy { - if (isCronetAvailable && Settings.enableCronet.value) { + if (isCronetAvailable && Settings.enableQuic.value) { HttpClient(Cronet) { engine { configureClient(Settings.enableQuic.value) } configureCommon() diff --git a/app/src/main/kotlin/com/hippo/ehviewer/Settings.kt b/app/src/main/kotlin/com/hippo/ehviewer/Settings.kt index cb69a41c6..41c491f73 100644 --- a/app/src/main/kotlin/com/hippo/ehviewer/Settings.kt +++ b/app/src/main/kotlin/com/hippo/ehviewer/Settings.kt @@ -111,7 +111,7 @@ object Settings : DataStorePreferences(null) { val saveCrashLog = boolPref("save_crash_log", true) val readCacheSize = intPref("read_cache_size_2", 640) val enableCronet = boolPref("enable_cronet", true) - val enableQuic = boolPref("enable_quic", true) + val enableQuic = boolPref("enable_quic", false) val hardwareBitmapThreshold = intPref("hardware_bitmap_threshold", 16384) val preloadThumbAggressively = boolPref("preload_thumb_aggressively", false) val animateItems = boolPref("animate_items", true)