pull/60/head
有安科技 11 months ago
parent 8c81a09ff4
commit cc45edaef4

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

@ -9,7 +9,7 @@
--]] --]]
if ngx.var.scheme == "http" then if waf.scheme == "http" then
return ngx.redirect("https://" .. ngx.var.host) return waf.redirect("https://" .. waf.host)
end end
return false return false
Loading…
Cancel
Save