Software /
code /
prosody
Changeset
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 |
parents | 8583:9918f324a0be |
children | 8585:046041a37c1e |
files | plugins/mod_register_limits.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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