LectorTMO: Use cloudflareClient (#1340)

Use cloudflareClient
This commit is contained in:
bapeey 2024-02-17 13:42:41 -05:00 committed by Draff
parent 63c57ec13e
commit d97962de20
2 changed files with 3 additions and 3 deletions

View File

@ -2,4 +2,4 @@ plugins {
id("lib-multisrc")
}
baseVersionCode = 3
baseVersionCode = 4

View File

@ -91,7 +91,7 @@ abstract class LectorTmo(
}
private val ignoreSslClient: OkHttpClient by lazy {
network.client.newBuilder()
network.cloudflareClient.newBuilder()
.ignoreAllSSLErrors()
.followRedirects(false)
.rateLimit(
@ -103,7 +103,7 @@ abstract class LectorTmo(
private var lastCFDomain: String = ""
override val client: OkHttpClient by lazy {
network.client.newBuilder()
network.cloudflareClient.newBuilder()
.addInterceptor { chain ->
val request = chain.request()
val url = request.url