rkihacker commited on
Commit
2577571
·
verified ·
1 Parent(s): 5caa50e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
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 <= 2000):
272
- return HTMLResponse(content="<h1>Error: Thread count must be between 1 and 2000.</h1>", status_code=400)
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: