do not recreate the ip list for each network test

Co-authored-by: Ross McFarland <[email protected]>
This commit is contained in:
Solvik
2023-11-09 17:47:55 +01:00
committed by GitHub
co-authored by Ross McFarland
parent f5fd68bb7e
commit 354b8c2967
+3 -2
View File
@@ -142,9 +142,10 @@ class _NetworkValueBaseFilter(BaseProcessor):
if record._type not in ['A', 'AAAA']:
continue
ips = [ip_address(value) for value in record.values]
if any(
ip_address(value) in network
for value, network in product(record.values, self.networks)
ip in network
for ip, network in product(ips, self.networks)
):
self.matches(zone, record)
else: