From e3f8184fc97216006421679dc0e68e0c308e3079 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 17 Mar 2016 22:25:56 +0100 Subject: [PATCH] mod_register: Make sure only an on_evict function or nil is passed to util.cache --- plugins/mod_register.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_register.lua b/plugins/mod_register.lua index e4b4bd51..fda717f7 100644 --- a/plugins/mod_register.lua +++ b/plugins/mod_register.lua @@ -187,7 +187,7 @@ local throttle_cache = new_cache(throttle_cache_size, blacklist_overflow and fun module:log("info", "Adding ip %s to registration blacklist", ip); blacklisted_ips[ip] = true; end -end); +end or nil); local function check_throttle(ip) if not throttle_max then return true end -- 2.30.2