From 3eb87cf953f3f02b7ebf5affb462e1f07d7cfccc Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 24 Oct 2022 11:57:46 +0800 Subject: [PATCH] Update init.lua --- plugins/op_waf/waf/lua/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/op_waf/waf/lua/init.lua b/plugins/op_waf/waf/lua/init.lua index 79c8862ba..d5c77f124 100644 --- a/plugins/op_waf/waf/lua/init.lua +++ b/plugins/op_waf/waf/lua/init.lua @@ -438,7 +438,7 @@ local 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 not params["request_header"]['X-forwarded-For'] then return false end - if C:is_ngx_match_list(post_rules, params["request_header"]['X-forwarded-For']) then + if C:ngx_match_list(post_rules, params["request_header"]['X-forwarded-For']) then C:write_log('post','regular') C:return_html(config['post']['status'], post_html) return true