Update webstats_common.lua

pull/282/head
midoks 2 years ago
parent 66ff690bae
commit 20b39cbb70
  1. 5
      plugins/webstats/lua/webstats_common.lua

@ -106,9 +106,8 @@ end
function _M.get_domain(self)
local domain = ngx.req.get_headers()['host']
if domain ~= nil then
domain = ngx.re.gsub(domain, "_", ".")
else
-- domain = ngx.re.gsub(domain, "_", ".")
if domain == nil then
domain = "unknown"
end
return domain

Loading…
Cancel
Save