mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-25 20:37:48 +08:00
添加传入多个域名文本检查
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user