mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-05 15:49:22 +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{
|
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
|
//All urls should already be allowed
|
||||||
for(url in newConfig.allowUrls) {
|
for(url in newConfig.allowUrls) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue