mod_firewall/mod_firewall.lua
changeset 2081 368b091e723b
parent 2080 d2ad556dcfb7
child 2082 11539785cb92
equal deleted inserted replaced
2080:d2ad556dcfb7 2081:368b091e723b
    87 			return ("local throttle_%s = rates.%s;"):format(throttle, throttle);
    87 			return ("local throttle_%s = rates.%s;"):format(throttle, throttle);
    88 		end;
    88 		end;
    89 	};
    89 	};
    90 };
    90 };
    91 
    91 
    92 local function include_dep(dep, code)
    92 local function include_dep(dependency, code)
    93 	local dep, dep_param = dep:match("^([^:]+):?(.*)$");
    93 	local dep, dep_param = dependency:match("^([^:]+):?(.*)$");
    94 	local dep_info = available_deps[dep];
    94 	local dep_info = available_deps[dep];
    95 	if not dep_info then
    95 	if not dep_info then
    96 		module:log("error", "Dependency not found: %s", dep);
    96 		module:log("error", "Dependency not found: %s", dep);
    97 		return;
    97 		return;
    98 	end
    98 	end