diff --git a/plugins/op_waf/t/test.sh b/plugins/op_waf/t/test.sh index 97933699c..a8c633360 100755 --- a/plugins/op_waf/t/test.sh +++ b/plugins/op_waf/t/test.sh @@ -6,6 +6,8 @@ export PATH # yum -y install httpd-tools # ab -c 1000 -n 1000000 http://www.zzzvps.com/ # /cc https://www.zzzvps.com/ 120 +# ab -c 10 -n 1000 http://t1.cn/wp-admin/index.php +# ab -c 1000 -n 1000000 http://www.zzzvps.com/ python3 index.py diff --git a/plugins/op_waf/waf/lua/init.lua b/plugins/op_waf/waf/lua/init.lua index ea8bcbdda..97617da45 100644 --- a/plugins/op_waf/waf/lua/init.lua +++ b/plugins/op_waf/waf/lua/init.lua @@ -663,7 +663,7 @@ function waf() if waf_post() then return true end if post_data_chekc() then return true end - if site_config[server_name]['open'] then + if site_config[server_name] and site_config[server_name]['open'] then if X_Forwarded() then return true end if post_X_Forwarded() then return true end -- url_path()