mirror of https://github.com/CIRCL/lookyloo
fix: exception in MISP module when a domain cannot be resolved
parent
35b4748cbd
commit
3f07e22a73
|
@ -257,6 +257,7 @@ class MISP(AbstractModule):
|
|||
tld = self.psl.publicsuffix(hostnode.name)
|
||||
domain = re.sub(f'.{tld}$', '', hostnode.name).split('.')[-1]
|
||||
to_lookup = [node.name, hostnode.name, f'{domain}.{tld}']
|
||||
if hasattr(hostnode, 'resolved_ips'):
|
||||
if 'v4' in hostnode.resolved_ips:
|
||||
to_lookup += hostnode.resolved_ips['v4']
|
||||
if 'v6' in hostnode.resolved_ips:
|
||||
|
|
Loading…
Reference in New Issue