File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -187,10 +187,11 @@ diff --git a/app/src/main/kotlin/com/hippo/ehviewer/ktor/OkhttpExtensions.kt b/a
187187index a13cc9003..fcb996115 100644
188188--- a/app/src/main/kotlin/com/hippo/ehviewer/ktor/OkhttpExtensions.kt
189189+++ b/app/src/main/kotlin/com/hippo/ehviewer/ktor/OkhttpExtensions.kt
190- @@ -1,14 +1,13 @@
190+ @@ -1,14 +1,16 @@
191191 package com.hippo.ehviewer.ktor
192192
193193- import com.ehviewer.core.util.isAtLeastQ
194+ + import com.hippo.ehviewer.Settings
194195+ import com.hippo.ehviewer.client.EhDns
195196+ import com.hippo.ehviewer.client.EhSSLSocketFactory
196197+ import com.hippo.ehviewer.client.install
@@ -202,8 +203,9 @@ index a13cc9003..fcb996115 100644
202203 config {
203204- if (isAtLeastQ) {
204205- dns(AsyncDns.toDns(AndroidAsyncDns.IPv4, AndroidAsyncDns.IPv6))
205- - }
206206+ dns(EhDns)
207- + install(EhSSLSocketFactory)
207+ + if (!Settings.enableQuic.value) {
208+ + install(EhSSLSocketFactory)
209+ }
208210 }
209211 }
You can’t perform that action at this time.
0 commit comments