添加无有效解析结果处理

This commit is contained in:
Jing Ling
2020-04-27 11:01:07 +08:00
parent 2c883fad50
commit 06c4f141d5
2 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -121,7 +121,10 @@ def deal_output(output_path):
record['resolve'] = 0
record['reason'] = 'NOARECORD'
records[qname] = record
return records
if not records:
logger.log('FATAL', f'无有效解析结果')
exit(1)
return records
def run_resolve(domain, data):