From 01b8c9b8fff0ba16ead75b9e386d4e9963c85acb Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 9 Oct 2022 22:47:28 +0800 Subject: [PATCH] Update init.lua --- plugins/op_waf/waf/lua/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/op_waf/waf/lua/init.lua b/plugins/op_waf/waf/lua/init.lua index 983a90cef..f9784891a 100644 --- a/plugins/op_waf/waf/lua/init.lua +++ b/plugins/op_waf/waf/lua/init.lua @@ -398,7 +398,7 @@ end function post_X_Forwarded() if not config['post']['open'] or not C:is_site_config('post') then return false end if params['method'] ~= "POST" then return false end - if C:is_ngx_match(post_rules,params["request_header"]['X-forwarded-For'],'post') then + if C:is_ngx_match_post(post_rules,params["request_header"]['X-forwarded-For']) then C:write_log('post','regular') C:return_html(config['post']['status'],post_html) return true @@ -592,7 +592,7 @@ function waf() end waf_args() - + -- 扫描软件禁止 waf_scan_black()