This commit is contained in:
Dionysus 2025-02-11 21:48:34 -05:00
parent 63517430b7
commit 3d8b2d8e4f
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
3 changed files with 18 additions and 18 deletions

View File

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

View File

@ -212,9 +212,9 @@ class HTTPZScanner:
tasks, return_when=asyncio.FIRST_COMPLETED
)
for task in done:
result = await task
if result := await task: # Only yield if result is not None
if self.show_progress:
count += 1 # Increment counter here
count += 1
yield result
task = asyncio.create_task(self.check_domain(session, domain))
@ -229,7 +229,7 @@ class HTTPZScanner:
tasks, return_when=asyncio.FIRST_COMPLETED
)
for task in done:
result = await task
if result := await task: # Only yield if result is not None
if self.show_progress:
count += 1
yield result
@ -251,7 +251,7 @@ class HTTPZScanner:
tasks, return_when=asyncio.FIRST_COMPLETED
)
for task in done:
result = await task
if result := await task: # Only yield if result is not None
if self.show_progress:
count += 1
yield result
@ -264,7 +264,7 @@ class HTTPZScanner:
if tasks:
done, _ = await asyncio.wait(tasks)
for task in done:
result = await task
if result := await task: # Only yield if result is not None
if self.show_progress:
count += 1
yield result

View File

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