Added Cloudflare client to Lanraragi (#10675)

* Added Cloudflare client

* Bumped ext version
This commit is contained in:
jferdous70 2022-02-04 05:28:28 -05:00 committed by GitHub
parent 8c9ae32593
commit 2a180832e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'LANraragi'
pkgNameSuffix = 'all.lanraragi'
extClass = '.LANraragi'
extVersionCode = 9
extVersionCode = 10
}
dependencies {

View File

@ -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())