mod_firewall: Fix for when compiling on the command line and specifying multiple files
authorMatthew Wild <mwild1@gmail.com>
Tue, 15 Nov 2016 14:59:49 +0000
changeset 2369 05dae9adf778
parent 2368 17d236129118
child 2370 14021c93a962
mod_firewall: Fix for when compiling on the command line and specifying multiple files
mod_firewall/mod_firewall.lua
--- a/mod_firewall/mod_firewall.lua	Tue Nov 15 14:58:43 2016 +0000
+++ b/mod_firewall/mod_firewall.lua	Tue Nov 15 14:59:49 2016 +0000
@@ -460,7 +460,7 @@
 
 	for _, filename in ipairs(arg) do
 		print("do -- File "..filename);
-		local chain_functions = assert(compile_firewall_rules(arg[1]));
+		local chain_functions = assert(compile_firewall_rules(filename));
 		if verbose then
 			print();
 			print("local active_definitions = "..serialize(active_definitions)..";");