httpz

- Hyper-fast HTTP Scraping Tool
git clone git://git.acid.vegas/httpz.git
Log | Files | Refs | Archive | README | LICENSE

commit 311d37108a7310aaa35a79cf3c770b585e7a8e8f
parent cd66542003d2c079687ec4931b91d0ba2f81c19e
Author: acidvegas <acid.vegas@acid.vegas>
Date: Tue, 11 Feb 2025 21:40:49 -0500

fuck

Diffstat:
Mhttpz_scanner/__init__.py | 4++--
Mhttpz_scanner/scanner.py | 4++++
Msetup.py | 2+-

3 files changed, 7 insertions(+), 3 deletions(-)

diff --git 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.7'
-\ No newline at end of file
+__version__ = '2.0.8'
+\ No newline at end of file
diff --git a/httpz_scanner/scanner.py b/httpz_scanner/scanner.py
@@ -107,6 +107,10 @@ class HTTPZScanner:
                     
                     result['status'] = response.status
                     
+                    # Bail immediately if it's a failed lookup - no point processing further
+                    if result['status'] == -1:
+                        return None
+
                     # Early exit if status code doesn't match criteria
                     if self.match_codes and result['status'] not in self.match_codes:
                         return result
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.7',
+    version='2.0.8',
     author='acidvegas',
     author_email='acid.vegas@acid.vegas',
     description='Hyper-fast HTTP Scraping Tool',