mirror of https://github.com/Safe3/uuWAF
update
parent
8c81a09ff4
commit
cc45edaef4
|
@ -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)
|
||||
end
|
||||
return false
|
Loading…
Reference in New Issue