OP防火墙-修复自动强制验证关闭不生效。

This commit is contained in:
midoks
2023-08-28 22:50:03 +08:00
parent 8d42f8137c
commit 52cfff7038
2 changed files with 9 additions and 6 deletions
+8 -6
View File
@@ -309,14 +309,16 @@ local function is_open_waf_cc_increase()
end
-- C:D("waf config:"..json.encode(config))
if cpu_percent >= config['safe_verify']['cpu'] then
return true
end
if site_config[server_name] and site_config[server_name]['safe_verify']['open'] then
if cpu_percent >= site_config[server_name]['safe_verify']['cpu'] then
if config['safe_verify']['auto'] then
if cpu_percent >= config['safe_verify']['cpu'] then
return true
end
if site_config[server_name] and site_config[server_name]['safe_verify']['open'] then
if cpu_percent >= site_config[server_name]['safe_verify']['cpu'] then
return true
end
end
end
return false