projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee32ab4
)
mod_register: Make sure only an on_evict function or nil is passed to util.cache
author
Kim Alvefur
<zash@zash.se>
Thu, 17 Mar 2016 21:25:56 +0000
(22:25 +0100)
committer
Kim Alvefur
<zash@zash.se>
Thu, 17 Mar 2016 21:25:56 +0000
(22:25 +0100)
plugins/mod_register.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_register.lua
b/plugins/mod_register.lua
index e4b4bd51e0679a642cf70511adefceb34cf3f182..fda717f723cdb7be53abdc0a314de9b0a63dd487 100644
(file)
--- 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