If no zone is given, use the most recent one
This commit is contained in:
parent
5199779fb2
commit
106e879eb9
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ def main():
|
||||||
for d in domains:
|
for d in domains:
|
||||||
if d.domain == p['domain'] or d.domain == p['domain'] + ".":
|
if d.domain == p['domain'] or d.domain == p['domain'] + ".":
|
||||||
for z in d.zone_history:
|
for z in d.zone_history:
|
||||||
if z == p['zone']:
|
if p['zone'] is None or z == p['zone']:
|
||||||
zone = d.get_zone(z)
|
zone = d.get_zone(z)
|
||||||
|
|
||||||
if p['subdomain'].removesuffix(d.domain) in zone.services:
|
if p['subdomain'].removesuffix(d.domain) in zone.services:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue