mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-08 01:13:17 +01:00
finalizing support for IPv6
This commit is contained in:
parent
b6d37d766a
commit
eed8d7eb5d
1 changed files with 3 additions and 1 deletions
|
|
@ -3056,7 +3056,9 @@ def getHostHeader(url):
|
||||||
|
|
||||||
retVal = urlparse.urlparse(url).netloc
|
retVal = urlparse.urlparse(url).netloc
|
||||||
|
|
||||||
if any(retVal.endswith(':%d' % _) for _ in [80, 443]):
|
if re.search("http(s)?://\[.+\]", url, re.I):
|
||||||
|
retVal = extractRegexResult("http(s)?://\[(?P<result>.+)\]", url)
|
||||||
|
elif any(retVal.endswith(':%d' % _) for _ in [80, 443]):
|
||||||
retVal = retVal.split(':')[0]
|
retVal = retVal.split(':')[0]
|
||||||
|
|
||||||
return retVal
|
return retVal
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue