Software / code / prosody
Diff
plugins/mod_register_limits.lua @ 8584:e3d953481f7d
mod_register_limits: Log a debug message when disallowing registration by ewhite- or blacklist
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 10 Mar 2018 02:24:18 +0100 |
| parent | 8485:0e02c6de5c02 |
| child | 8585:046041a37c1e |
line wrap: on
line diff
--- a/plugins/mod_register_limits.lua Sat Mar 10 02:21:23 2018 +0100 +++ b/plugins/mod_register_limits.lua Sat Mar 10 02:24:18 2018 +0100 @@ -61,6 +61,7 @@ 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