mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
Allow admin accounts whitelists to bypass for all domains even if not matching in domtoacc map
This commit is contained in:
@ -454,7 +454,7 @@ function _M.set_ip_var(txn, map_name, set_variable, lookup_var)
|
||||
-- loop through them and set the blocked var if found
|
||||
local split_names = utils.split(names_list, ":")
|
||||
for _, name in ipairs(split_names) do
|
||||
if name == current_name then
|
||||
if name == current_name or (lookup_key == "whitelist" and name == "admin") then
|
||||
_M.set_lang_json(txn)
|
||||
txn:set_var(set_variable, true)
|
||||
return
|
||||
|
Reference in New Issue
Block a user