1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

do not recreate the ip list for each network test

Co-authored-by: Ross McFarland <rwmcfa1@gmail.com>
This commit is contained in:
Solvik
2023-11-09 17:47:55 +01:00
committed by GitHub
parent f5fd68bb7e
commit 354b8c2967

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: