diff --git a/httpz_scanner/scanner.py b/httpz_scanner/scanner.py
@@ -229,8 +229,8 @@ class HTTPZScanner:
# Handle different input types
if isinstance(input_source, str):
# File or stdin input
- domain_iter = input_generator(input_source, self.shard)
- for domain in domain_iter:
+ gen = input_generator(input_source, self.shard)
+ async for domain in gen:
if len(tasks) >= self.concurrent_limit:
done, tasks = await asyncio.wait(
tasks, return_when=asyncio.FIRST_COMPLETED
diff --git a/setup.py b/setup.py
@@ -10,7 +10,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
setup(
name='httpz_scanner',
- version='2.0.2',
+ version='2.0.3',
author='acidvegas',
author_email='acid.vegas@acid.vegas',
description='Hyper-fast HTTP Scraping Tool',
| |