changeset 2365:05dae9adf778

mod_firewall: Fix for when compiling on the command line and specifying multiple files
author Matthew Wild <mwild1@gmail.com>
date Tue, 15 Nov 2016 14:59:49 +0000
parents 17d236129118
children 14021c93a962
files mod_firewall/mod_firewall.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)..";");