Software /
code /
prosody-modules
Changeset
2575:214b49d05ea1
mod_firewall: Fix TO/FROM ADMIN to use current (module) host
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 25 Feb 2017 15:47:22 +0000 |
parents | 2574:f65c5927ee8e |
children | 2576:95b79d515a65 |
files | mod_firewall/conditions.lib.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 };