comparison mod_firewall/mod_firewall.lua @ 2533:9aed7f4e9f07

mod_firewall: Fix scan_list() syntax error in generated code
author Matthew Wild <mwild1@gmail.com>
date Mon, 20 Feb 2017 13:12:30 +0000
parents 44a71584521d
children a1b6a6b0aabb
comparison
equal deleted inserted replaced
2532:2ddb74805f91 2533:9aed7f4e9f07
217 ]]):format(search_name, pattern_name, search_name, search_name, pattern_name, search_name, pattern_name); 217 ]]):format(search_name, pattern_name, search_name, search_name, pattern_name, search_name, pattern_name);
218 return code, { "search:"..search_name }; 218 return code, { "search:"..search_name };
219 end; 219 end;
220 }; 220 };
221 scan_list = { 221 scan_list = {
222 global_code = [[local function scan_list(list, items) for item in pairs(items) do if list:contains(item) then return true; end end]]; 222 global_code = [[local function scan_list(list, items) for item in pairs(items) do if list:contains(item) then return true; end end end]];
223 } 223 }
224 }; 224 };
225 225
226 local function include_dep(dependency, code) 226 local function include_dep(dependency, code)
227 local dep, dep_param = dependency:match("^([^:]+):?(.*)$"); 227 local dep, dep_param = dependency:match("^([^:]+):?(.*)$");