Added Cloudflare client to Lanraragi (#10675)
* Added Cloudflare client * Bumped ext version
This commit is contained in:
parent
8c9ae32593
commit
2a180832e7
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'LANraragi'
|
||||
pkgNameSuffix = 'all.lanraragi'
|
||||
extClass = '.LANraragi'
|
||||
extVersionCode = 9
|
||||
extVersionCode = 10
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -447,7 +447,7 @@ class LANraragi : ConfigurableSource, HttpSource() {
|
|||
}
|
||||
|
||||
// Headers (currently auth) are done in headersBuilder
|
||||
override val client: OkHttpClient = network.client.newBuilder()
|
||||
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
|
||||
.dns(Dns.SYSTEM)
|
||||
.addInterceptor { chain ->
|
||||
val response = chain.proceed(chain.request())
|
||||
|
|
Loading…
Reference in New Issue