diff --git a/httpz_scanner/__init__.py b/httpz_scanner/__init__.py index aa61b14..99a818d 100644 --- a/httpz_scanner/__init__.py +++ b/httpz_scanner/__init__.py @@ -6,4 +6,4 @@ from .scanner import HTTPZScanner from .colors import Colors -__version__ = '2.0.8' \ No newline at end of file +__version__ = '2.0.9' \ No newline at end of file diff --git a/httpz_scanner/scanner.py b/httpz_scanner/scanner.py index 406f735..512cbed 100644 --- a/httpz_scanner/scanner.py +++ b/httpz_scanner/scanner.py @@ -177,10 +177,10 @@ class HTTPZScanner: break except Exception as e: debug(f'Error checking {url}: {str(e)}') - result['status'] = -1 - continue + continue # Just continue to next protocol without setting status = -1 - return result + # Return None if we never got a valid status + return None if result['status'] == 0 else result async def scan(self, input_source): diff --git a/setup.py b/setup.py index c2be48b..e03ceac 100644 --- 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.8', + version='2.0.9', author='acidvegas', author_email='acid.vegas@acid.vegas', description='Hyper-fast HTTP Scraping Tool',