Software /
code /
prosody-modules
Changeset
2859:22e11645a895
mod_firewall: Trim trailing whitespace [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 03 Jan 2018 07:49:22 +0100 |
parents | 2858:150a7bd59043 |
children | 2860:a7c2df6b2662 |
files | mod_firewall/conditions.lib.lua mod_firewall/definitions.lib.lua mod_firewall/mod_firewall.lua |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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;