diff mod_firewall/mod_firewall.lua @ 1001:c0850793b716

mod_firewall: don't use %b() (not technically correct)
author Matthew Wild <mwild1@gmail.com>
date Wed, 08 May 2013 10:43:02 +0100
parents 197af8440ffb
children c66ea26e4224
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua	Wed May 08 02:26:54 2013 +0200
+++ b/mod_firewall/mod_firewall.lua	Wed May 08 10:43:02 2013 +0100
@@ -286,7 +286,7 @@
 			local rule_code = table.concat(rule.actions, "\n\t");
 			if #rule.conditions > 0 then
 				for i, condition in ipairs(rule.conditions) do
-					local negated = condition:match("^not%b()$");
+					local negated = condition:match("^not%(.+%)$");
 					if negated then
 						condition = condition:match("^not%((.+)%)$");
 					end