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) function _M.get_domain(self)
local domain = ngx.req.get_headers()['host'] local domain = ngx.req.get_headers()['host']
if domain ~= nil then -- domain = ngx.re.gsub(domain, "_", ".")
domain = ngx.re.gsub(domain, "_", ".") if domain == nil then
else
domain = "unknown" domain = "unknown"
end end
return domain return domain

Loading…
Cancel
Save