mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 18:14:42 +00:00
unbound / dnsbl_module.py: safeguard retrieval of blocklist shortcode
This commit is contained in:
parent
5e92018580
commit
d7be43f913
@ -177,7 +177,7 @@ class ModuleContext:
|
||||
|
||||
if self.dnsbl_available and qtype in rr_types and domain in mod_env['dnsbl']['data']:
|
||||
qstate.return_rcode = self.rcode
|
||||
blocklist = mod_env['dnsbl']['data'][domain]['bl']
|
||||
blocklist = mod_env['dnsbl']['data'][domain].get('bl')
|
||||
dnssec_status = sec_status_secure if self.dnssec_enabled else sec_status_unchecked
|
||||
ttl = 3600
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user