mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
unbound / dnsbl_module: log null client values on AttributeError
This commit is contained in:
parent
b584e1375d
commit
842bcd470a
@ -164,8 +164,10 @@ class ModuleContext:
|
||||
# reproducible, we log the type of query so we can act on it in the future.
|
||||
client = qstate.mesh_info.reply_list.query_reply
|
||||
except AttributeError:
|
||||
log_warn("dnsbl_module: unable to determine client for (%s type %s)" % (qname, qtype_str))
|
||||
client = None
|
||||
log_warn("dnsbl_module: unable to determine client for %s (type %s)" % (qname, qtype_str))
|
||||
client = type('',(),{})()
|
||||
client.addr = None
|
||||
client.family = None
|
||||
|
||||
domain = qname.rstrip('.')
|
||||
info = (t, client.addr, client.family, qtype_str, qname)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user