Use Generator Expressions Instead of List Comprehensions
This commit is contained in:
parent
216db5d387
commit
daca707ad8
@ -397,7 +397,7 @@ class ZeekEngine(object):
|
|||||||
# This check can be good if the domain has already been cached by
|
# This check can be good if the domain has already been cached by
|
||||||
# the device so it wont appear in self.dns.
|
# the device so it wont appear in self.dns.
|
||||||
|
|
||||||
if any([cert["cn"].endswith(r["domain"]) for r in self.dns]):
|
if any(cert["cn"].endswith(r["domain"]) for r in self.dns):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for domain in self.bl_domains:
|
for domain in self.bl_domains:
|
||||||
|
Loading…
Reference in New Issue
Block a user