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.
This commit is contained in:
1 parent
793ba815f7
commit
d7c64f540b
2 files changed
+2
-2
No files matched your search
@@ -219,7 +219,7 @@ class EhApplication : Application(), SingletonImageLoader.Factory {
|
|||||||
private set
|
private set
|
||||||
|
|
||||||
val ktorClient by lazy {
|
val ktorClient by lazy {
|
||||||
if (isCronetAvailable && Settings.enableCronet.value) {
|
if (isCronetAvailable && Settings.enableQuic.value) {
|
||||||
HttpClient(Cronet) {
|
HttpClient(Cronet) {
|
||||||
engine { configureClient(Settings.enableQuic.value) }
|
engine { configureClient(Settings.enableQuic.value) }
|
||||||
configureCommon()
|
configureCommon()
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ object Settings : DataStorePreferences(null) {
|
|||||||
val saveCrashLog = boolPref("save_crash_log", true)
|
val saveCrashLog = boolPref("save_crash_log", true)
|
||||||
val readCacheSize = intPref("read_cache_size_2", 640)
|
val readCacheSize = intPref("read_cache_size_2", 640)
|
||||||
val enableCronet = boolPref("enable_cronet", true)
|
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 hardwareBitmapThreshold = intPref("hardware_bitmap_threshold", 16384)
|
||||||
val preloadThumbAggressively = boolPref("preload_thumb_aggressively", false)
|
val preloadThumbAggressively = boolPref("preload_thumb_aggressively", false)
|
||||||
val animateItems = boolPref("animate_items", true)
|
val animateItems = boolPref("animate_items", true)
|
||||||
|
|||||||
Reference in new issue
Block a user