--- a/mod_firewall/conditions.lib.lua Sun Dec 31 13:15:53 2017 +0100
+++ b/mod_firewall/conditions.lib.lua Wed Jan 03 07:49:22 2018 +0100
@@ -259,7 +259,7 @@
if not param then
return ("not global_throttle_%s:poll(1)"):format(name), { "globalthrottle:"..name, unpack(meta_deps) };
end
- return ("not multi_throttle_%s:poll_on(%s, 1)"):format(name, param), { "multithrottle:"..name, unpack(meta_deps) };
+ return ("not multi_throttle_%s:poll_on(%s, 1)"):format(name, param), { "multithrottle:"..name, unpack(meta_deps) };
end
function condition_handlers.ORIGIN_MARKED(name_and_time)
--- a/mod_firewall/definitions.lib.lua Sun Dec 31 13:15:53 2017 +0100
+++ b/mod_firewall/definitions.lib.lua Wed Jan 03 07:49:22 2018 +0100
@@ -40,7 +40,7 @@
single = function ()
return new_throttle(rate*burst, burst);
end;
-
+
multi = function ()
local cache = require "util.cache".new(max_throttles, deny_when_full and evict_only_unthrottled or nil);
return {
--- a/mod_firewall/mod_firewall.lua Sun Dec 31 13:15:53 2017 +0100
+++ b/mod_firewall/mod_firewall.lua Wed Jan 03 07:49:22 2018 +0100
@@ -571,7 +571,7 @@
unload_script(script, true);
end
local chain_functions, err = compile_firewall_rules(script);
-
+
if not chain_functions then
module:log("error", "Error compiling %s: %s", script, err or "unknown error");
return;