mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-06 16:32:23 +01:00
Support IPv6 literals ("[::1]:8080") in the proxy switch. (#4041)
This commit is contained in:
parent
3145de15d8
commit
24aadbd850
1 changed files with 1 additions and 1 deletions
|
|
@ -995,7 +995,7 @@ def _setHTTPHandlers():
|
|||
errMsg = "invalid proxy address '%s' ('%s')" % (conf.proxy, getSafeExString(ex))
|
||||
raise SqlmapSyntaxException(errMsg)
|
||||
|
||||
hostnamePort = _.netloc.split(":")
|
||||
hostnamePort = _.netloc.rsplit(":", 1)
|
||||
|
||||
scheme = _.scheme.upper()
|
||||
hostname = hostnamePort[0]
|
||||
|
|
|
|||
Loading…
Reference in a new issue