If no zone is given, use the most recent one
This commit is contained in:
parent
5199779fb2
commit
106e879eb9
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user