mod_firewall/conditions.lib.lua
changeset 2556 18b6a55dd5d6
parent 2549 9b46d24edf0d
child 2557 7ed2a66bfabd
--- a/mod_firewall/conditions.lib.lua	Thu Feb 23 14:01:12 2017 +0000
+++ b/mod_firewall/conditions.lib.lua	Thu Feb 23 14:05:39 2017 +0000
@@ -66,11 +66,13 @@
 end
 
 function condition_handlers.FROM_EXACTLY(from)
-	return ("from == %q"):format(from), { "from" };
+	local metadeps = {};
+	return ("from == %s"):format(metaq(from, metadeps)), { "from", unpack(metadeps) };
 end
 
 function condition_handlers.TO_EXACTLY(to)
-	return ("to == %q"):format(to), { "to" };
+	local metadeps = {};
+	return ("to == %s"):format(metaq(to, metadeps)), { "to", unpack(metadeps) };
 end
 
 function condition_handlers.TO_SELF()