优化内存

This commit is contained in:
Jing Ling
2020-08-20 13:49:28 +08:00
parent 2d7dba361c
commit f8f3ad0352
2 changed files with 22 additions and 15 deletions
+10
View File
@@ -728,3 +728,13 @@ def match_subdomains(domain, html, distinct=True, fuzzy=True):
return set(deal)
else:
return list(deal)
def check_random_subdomain(subdomains):
if not subdomains:
logger.log('ALERT', f'The generated dictionary is empty')
return False
for subdomain in subdomains:
if subdomain:
logger.log('ALERT', f'Please check whether {subdomain} is correct or not')
return True