Comparison

mod_firewall/mod_firewall.lua @ 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
parent 2364:17d236129118
child 2366:14021c93a962
comparison
equal deleted inserted replaced
2364:17d236129118 2365:05dae9adf778
458 print(); 458 print();
459 end 459 end
460 460
461 for _, filename in ipairs(arg) do 461 for _, filename in ipairs(arg) do
462 print("do -- File "..filename); 462 print("do -- File "..filename);
463 local chain_functions = assert(compile_firewall_rules(arg[1])); 463 local chain_functions = assert(compile_firewall_rules(filename));
464 if verbose then 464 if verbose then
465 print(); 465 print();
466 print("local active_definitions = "..serialize(active_definitions)..";"); 466 print("local active_definitions = "..serialize(active_definitions)..";");
467 print(); 467 print();
468 end 468 end