mirror of
https://github.com/gedoor/legado.git
synced 2024-07-04 23:36:56 +08:00
优化
This commit is contained in:
parent
9c50621895
commit
5738c94353
|
@ -108,7 +108,7 @@ fun buildRequest(request: Request, callback: UrlRequest.Callback): UrlRequest? {
|
|||
|
||||
private fun disableCertificateVerify() {
|
||||
runCatching {
|
||||
val sDefaultTrustManager = X509Util::class.java.getDeclaredField("sTestTrustManager")
|
||||
val sDefaultTrustManager = X509Util::class.java.getDeclaredField("sDefaultTrustManager")
|
||||
sDefaultTrustManager.isAccessible = true
|
||||
sDefaultTrustManager.set(null, SSLHelper.unsafeTrustManagerExtensions)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user