From fd1c52530e69315b30ae90e0c846bded4e40eb6e Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 12 Oct 2022 19:35:59 +0800 Subject: [PATCH] Update common.lua --- plugins/op_waf/waf/lua/common.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/op_waf/waf/lua/common.lua b/plugins/op_waf/waf/lua/common.lua index 47c7c1d3d..c981e5035 100644 --- a/plugins/op_waf/waf/lua/common.lua +++ b/plugins/op_waf/waf/lua/common.lua @@ -603,6 +603,7 @@ function _M.get_real_ip(self, server_name) local request_header = ngx.req.get_headers() for _,v in ipairs(self.site_config[server_name]['cdn_header']) do + C:D("ddd:"..C:to_json(request_header[v])) if request_header[v] ~= nil and request_header[v] ~= "" then local header_tmp = request_header[v] if type(header_tmp) == "table" then header_tmp = header_tmp[1] end