If no zone is given, use the most recent one

This commit is contained in:
nemunaire 2023-12-10 12:39:15 +01:00
parent 5199779fb2
commit 106e879eb9
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ def main():
for d in domains:
if d.domain == p['domain'] or d.domain == p['domain'] + ".":
for z in d.zone_history:
if z == p['zone']:
if p['zone'] is None or z == p['zone']:
zone = d.get_zone(z)
if p['subdomain'].removesuffix(d.domain) in zone.services: