Browse Source

do not recreate the ip list for each network test

Co-authored-by: Ross McFarland <rwmcfa1@gmail.com>
pull/1094/head
Solvik 2 years ago
committed by GitHub
parent
commit
354b8c2967
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      octodns/processor/filter.py

+ 3
- 2
octodns/processor/filter.py 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:


Loading…
Cancel
Save