mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-20 19:44:48 +00:00
Additional risk check
This commit is contained in:
parent
819e81b7a6
commit
cf8bd9ce3a
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