This commit is contained in:
alteredCoder 2022-01-30 17:11:05 +01:00
parent 830dc4a9ac
commit 4ca5b0c49c

View file

@ -369,7 +369,7 @@ end
function csmod.Allow(ip)
if runtime.conf["EXCLUDE_LOCATION"] ~= nil and utils.table_len(runtime.conf["EXCLUDE_LOCATION"]) > 0 then
if utils.table_len(runtime.conf["EXCLUDE_LOCATION"]) > 0 then
for k, v in pairs(runtime.conf["EXCLUDE_LOCATION"]) do
if ngx.var.uri == v then
ngx.log(ngx.ERR, "whitelisted location: " .. v)