Spaces:
Paused
Paused
Update main.py
Browse files
main.py
CHANGED
|
@@ -268,8 +268,8 @@ async def scan(
|
|
| 268 |
# Input validation
|
| 269 |
if not (1 <= start_port <= end_port <= 65535):
|
| 270 |
return HTMLResponse(content="<h1>Error: Invalid port range.</h1>", status_code=400)
|
| 271 |
-
if not (1 <= threads <=
|
| 272 |
-
return HTMLResponse(content="<h1>Error: Thread count must be between 1 and
|
| 273 |
|
| 274 |
# Resolve hostname
|
| 275 |
try:
|
|
|
|
| 268 |
# Input validation
|
| 269 |
if not (1 <= start_port <= end_port <= 65535):
|
| 270 |
return HTMLResponse(content="<h1>Error: Invalid port range.</h1>", status_code=400)
|
| 271 |
+
if not (1 <= threads <= 5000):
|
| 272 |
+
return HTMLResponse(content="<h1>Error: Thread count must be between 1 and 5000.</h1>", status_code=400)
|
| 273 |
|
| 274 |
# Resolve hostname
|
| 275 |
try:
|