This commit is contained in:
midoks 2022-10-23 13:49:08 +08:00
parent 6aefa3b7dc
commit 2d3801dcc0
2 changed files with 5 additions and 7 deletions

View File

@ -15,7 +15,7 @@ from flask import request
class config_api:
__version = '0.9.14'
__version = '0.9.14.1'
def __init__(self):
pass

View File

@ -295,16 +295,14 @@ local function is_open_waf_cc_increase()
return true
end
if site_config[server_name]['safe_verify']['open'] then
return true
end
if cpu_percent >= config['safe_verify']['cpu'] then
return true
end
if cpu_percent >= site_config[server_name]['safe_verify']['cpu'] then
return true
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
return false