Software /
code /
prosody-modules
Comparison
mod_register_dnsbl/mod_register_dnsbl.lua @ 2203:2dcc3079572c
mod_register_dnsbl: Include more information in log message
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 09 Jun 2016 11:32:52 +0200 |
parent | 2135:42b095dab626 |
child | 2890:6412595e2046 |
comparison
equal
deleted
inserted
replaced
2202:217456783219 | 2203:2dcc3079572c |
---|---|
16 local rbl_ip = ip and reverse(ip, rbl); | 16 local rbl_ip = ip and reverse(ip, rbl); |
17 if rbl_ip then | 17 if rbl_ip then |
18 local log = session.log; | 18 local log = session.log; |
19 adns.lookup(function (reply) | 19 adns.lookup(function (reply) |
20 if reply and reply[1] then | 20 if reply and reply[1] then |
21 log("warn", "Registration from IP %s found in RBL", ip); | 21 log("warn", "Account %s@%s registered from IP %s found in RBL (%s)", event.username, event.host or module.host, ip, reply[1].a); |
22 end | 22 end |
23 end, rbl_ip); | 23 end, rbl_ip); |
24 end | 24 end |
25 end); | 25 end); |