mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-20 03:24:50 +00:00
Additional risk check
This commit is contained in:
parent
819e81b7a6
commit
5f1c0209a8
1 changed files with 3 additions and 0 deletions
|
@ -82,6 +82,9 @@ class SourcePluginConfig(
|
|||
};
|
||||
|
||||
fun isLowRiskUpdate(oldScript: String, newConfig: SourcePluginConfig, newScript: String): Boolean{
|
||||
//New allow header access
|
||||
if(!allowAllHttpHeaderAccess && newConfig.allowAllHttpHeaderAccess)
|
||||
return false;
|
||||
|
||||
//All urls should already be allowed
|
||||
for(url in newConfig.allowUrls) {
|
||||
|
|
Loading…
Add table
Reference in a new issue