mod_firewall: Correct zone condition to check bare JID
authorKim Alvefur <zash@zash.se>
Thu, 17 Mar 2016 14:45:08 +0100
changeset 2123 5f6c18fd0161
parent 2122 643b254e75de
child 2124 f6dcfe263b85
mod_firewall: Correct zone condition to check bare JID
mod_firewall/conditions.lib.lua
--- 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), {