Mercurial > prosody-modules
changeset 2119:5f6c18fd0161
mod_firewall: Correct zone condition to check bare JID
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 17 Mar 2016 14:45:08 +0100 |
parents | 643b254e75de |
children | f6dcfe263b85 |
files | mod_firewall/conditions.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_firewall/conditions.lib.lua Thu Mar 17 14:33:14 2016 +0100 +++ b/mod_firewall/conditions.lib.lua Thu Mar 17 14:45:08 2016 +0100 @@ -73,7 +73,7 @@ local function zone_check(zone, which) local which_not = which == "from" and "to" or "from"; return ("(zone_%s[%s_host] or zone_%s[%s] or zone_%s[bare_%s]) " - .."and not(zone_%s[%s_host] or zone_%s[%s] or zone_%s[%s])" + .."and not(zone_%s[%s_host] or zone_%s[%s] or zone_%s[bare_%s])" ) :format(zone, which, zone, which, zone, which, zone, which_not, zone, which_not, zone, which_not), {