pull/216/head
midoks 3 years ago
parent 61292868ad
commit 67c9cd0277
  1. 2
      plugins/op_waf/t/test.sh
  2. 2
      plugins/op_waf/waf/lua/init.lua

@ -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

@ -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()

Loading…
Cancel
Save