修复变量覆盖问题

This commit is contained in:
Jing Ling
2020-09-15 23:21:53 +08:00
parent 15983edfc5
commit 306f9ce6c2
+3 -3
View File
@@ -21,9 +21,9 @@ def filter_subdomain(data):
"""
logger.log('DEBUG', f'Filtering subdomains to be resolved')
subdomains = []
for data in data:
if not data.get('ip'):
subdomain = data.get('subdomain')
for infos in data:
if not infos.get('ip'):
subdomain = infos.get('subdomain')
if subdomain:
subdomains.append(subdomain)
return subdomains