This commit is contained in:
Dionysus 2025-02-11 21:13:28 -05:00
parent f7c797c851
commit 1819c7dc48
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
3 changed files with 4 additions and 4 deletions

View File

@ -6,4 +6,4 @@ from .scanner import HTTPZScanner
from .colors import Colors from .colors import Colors
__version__ = '2.0.2' __version__ = '2.0.3'

View File

@ -229,8 +229,8 @@ class HTTPZScanner:
# Handle different input types # Handle different input types
if isinstance(input_source, str): if isinstance(input_source, str):
# File or stdin input # File or stdin input
domain_iter = input_generator(input_source, self.shard) gen = input_generator(input_source, self.shard)
for domain in domain_iter: async for domain in gen:
if len(tasks) >= self.concurrent_limit: if len(tasks) >= self.concurrent_limit:
done, tasks = await asyncio.wait( done, tasks = await asyncio.wait(
tasks, return_when=asyncio.FIRST_COMPLETED tasks, return_when=asyncio.FIRST_COMPLETED

View File

@ -10,7 +10,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
setup( setup(
name='httpz_scanner', name='httpz_scanner',
version='2.0.2', version='2.0.3',
author='acidvegas', author='acidvegas',
author_email='acid.vegas@acid.vegas', author_email='acid.vegas@acid.vegas',
description='Hyper-fast HTTP Scraping Tool', description='Hyper-fast HTTP Scraping Tool',