Update init.lua

pull/221/head
midoks 3 years ago
parent 124b24885e
commit 3eb87cf953
  1. 2
      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

Loading…
Cancel
Save