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'
|
extName = 'LANraragi'
|
||||||
pkgNameSuffix = 'all.lanraragi'
|
pkgNameSuffix = 'all.lanraragi'
|
||||||
extClass = '.LANraragi'
|
extClass = '.LANraragi'
|
||||||
extVersionCode = 9
|
extVersionCode = 10
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -447,7 +447,7 @@ class LANraragi : ConfigurableSource, HttpSource() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Headers (currently auth) are done in headersBuilder
|
// Headers (currently auth) are done in headersBuilder
|
||||||
override val client: OkHttpClient = network.client.newBuilder()
|
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
|
||||||
.dns(Dns.SYSTEM)
|
.dns(Dns.SYSTEM)
|
||||||
.addInterceptor { chain ->
|
.addInterceptor { chain ->
|
||||||
val response = chain.proceed(chain.request())
|
val response = chain.proceed(chain.request())
|
||||||
|
|
Loading…
Reference in New Issue