# HG changeset patch # User Kim Alvefur # Date 1514962162 -3600 # Node ID 22e11645a8951e32794e47b6602db859e17200c7 # Parent 150a7bd5904369eeeda79b08c3c2745d4400cb45 mod_firewall: Trim trailing whitespace [luacheck] diff -r 150a7bd59043 -r 22e11645a895 mod_firewall/conditions.lib.lua --- 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) diff -r 150a7bd59043 -r 22e11645a895 mod_firewall/definitions.lib.lua --- 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 { diff -r 150a7bd59043 -r 22e11645a895 mod_firewall/mod_firewall.lua --- 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;