添加传入多个域名文本检查

This commit is contained in:
Jing Ling
2020-09-12 12:14:22 +08:00
parent d207496718
commit 9958674d79
+3
View File
@@ -125,6 +125,9 @@ def read_target_file(target):
def get_from_target(target):
domains = set()
if isinstance(target, str):
if target.endswith('.txt'):
logger.log('FETAL', 'Use targets parameter for multiple domain names')
exit(1)
domain = match_main_domain(target)
if not domain:
return domains