# HG changeset patch # User Matthew Wild # Date 1488037642 0 # Node ID 214b49d05ea1ab18faa614bbe7229f2ec47025aa # Parent f65c5927ee8edbc234aa8f64c74d2efabd6ebcb1 mod_firewall: Fix TO/FROM ADMIN to use current (module) host diff -r f65c5927ee8e -r 214b49d05ea1 mod_firewall/conditions.lib.lua --- a/mod_firewall/conditions.lib.lua Sat Feb 25 15:46:27 2017 +0000 +++ b/mod_firewall/conditions.lib.lua Sat Feb 25 15:47:22 2017 +0000 @@ -164,11 +164,11 @@ end function condition_handlers.FROM_ADMIN() - return ("is_admin(bare_from, from_host)"):format(host ~= "*" and host or nil), { "is_admin", "bare_from", "split_from" }; + return ("is_admin(bare_from, current_host)"), { "is_admin", "bare_from", "current_host" }; end function condition_handlers.TO_ADMIN() - return ("is_admin(bare_to, to_host)"):format(host ~= "*" and host or nil), { "is_admin", "bare_to", "split_to" }; + return ("is_admin(bare_to, current_host)"), { "is_admin", "bare_to", "current_host" }; end local day_numbers = { sun = 0, mon = 2, tue = 3, wed = 4, thu = 5, fri = 6, sat = 7 };