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