aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-03-10 02:24:18 +0100
committerKim Alvefur <zash@zash.se>2018-03-10 02:24:18 +0100
commitcf7241d3b6f2b5eda0d2300167df6ff6686d15e2 (patch)
tree06d9c6f2596597ba127a883ab90390e027b2c36f
parent5de88f3169fc5de6a1edaec2d449f2a0e971c4c0 (diff)
downloadprosody-cf7241d3b6f2b5eda0d2300167df6ff6686d15e2.tar.gz
prosody-cf7241d3b6f2b5eda0d2300167df6ff6686d15e2.zip
mod_register_limits: Log a debug message when disallowing registration by ewhite- or blacklist
-rw-r--r--plugins/mod_register_limits.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_register_limits.lua b/plugins/mod_register_limits.lua
index 1fb3c05e..1d12f7f2 100644
--- a/plugins/mod_register_limits.lua
+++ b/plugins/mod_register_limits.lua
@@ -61,6 +61,7 @@ module:hook("user-registering", function (event)
if not ip then
log("debug", "User's IP not known; can't apply blacklist/whitelist");
elseif ip_in_set(blacklisted_ips, event.ip) or (whitelist_only and not ip_in_set(whitelisted_ips, ip)) then
+ log("debug", "Registration disallowed by white- or blacklist");
event.allowed = false;
elseif throttle_max and not ip_in_set(whitelisted_ips, ip) then
if not check_throttle(event.ip) then