forked from recloudstream/cloudstream
Fix CloudflareKiller (remove cookies on init)
This commit is contained in:
parent
8862b103a7
commit
942c9541a2
1 changed files with 5 additions and 0 deletions
|
@ -23,6 +23,11 @@ class CloudflareKiller : Interceptor {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
// Needs to clear cookies between sessions to generate new cookies.
|
||||||
|
CookieManager.getInstance().removeAllCookies(null)
|
||||||
|
}
|
||||||
|
|
||||||
val savedCookies: MutableMap<String, Map<String, String>> = mutableMapOf()
|
val savedCookies: MutableMap<String, Map<String, String>> = mutableMapOf()
|
||||||
|
|
||||||
override fun intercept(chain: Interceptor.Chain): Response = runBlocking {
|
override fun intercept(chain: Interceptor.Chain): Response = runBlocking {
|
||||||
|
|
Loading…
Reference in a new issue