@ -13,7 +13,7 @@ if not waf.startWith(waf.toLower(waf.uri), "/api/") then
return false
end
local sh = ngx.shared.ipCache
local sh = waf.ipCache
local ccIp = 'cc-' .. waf.ip
local c, f = sh:get(ccIp)
if not c then
@ -9,7 +9,7 @@
--]]
if ngx.var.scheme == "http" then
return ngx.redirect("https://" .. ngx.var.host)
if waf.scheme == "http" then
return waf.redirect("https://" .. waf.host)