From 2cb46c0839cf0a0761fb61f33489f3f3833889da Mon Sep 17 00:00:00 2001 From: y1n Date: Fri, 10 May 2024 11:36:10 +0800 Subject: [PATCH] Fixed the problem of using -r to parse the request where host:ip does not splice the port. --- lib/core/common.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index dd5fc7151..a20bfd45a 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -5401,8 +5401,6 @@ def parseRequestFile(reqFile, checkParams=True): scheme, value = value.split('://')[:2] port = extractRegexResult(r":(?P\d+)\Z", value) - if port: - value = value[:-(1 + len(port))] host = value