Update webstats_common.lua

pull/387/head
midoks 2 years ago
parent da4b872666
commit 94d4a90bcc
  1. 1
      plugins/webstats/lua/webstats_common.lua

@ -1084,6 +1084,7 @@ end
function _M.get_client_ip(self)
local client_ip = "unknown"
local cdn = auto_config['cdn']
local request_header = ngx.req.get_headers()
if cdn == true then
for _,v in ipairs(auto_config['cdn_headers']) do
if request_header[v] ~= nil and request_header[v] ~= "" then

Loading…
Cancel
Save