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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user