mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Support IPv6 literals ("[::1]:8080") in the proxy switch. (#4041)
This commit is contained in:
parent
3145de15d8
commit
24aadbd850
|
@ -995,7 +995,7 @@ def _setHTTPHandlers():
|
||||||
errMsg = "invalid proxy address '%s' ('%s')" % (conf.proxy, getSafeExString(ex))
|
errMsg = "invalid proxy address '%s' ('%s')" % (conf.proxy, getSafeExString(ex))
|
||||||
raise SqlmapSyntaxException(errMsg)
|
raise SqlmapSyntaxException(errMsg)
|
||||||
|
|
||||||
hostnamePort = _.netloc.split(":")
|
hostnamePort = _.netloc.rsplit(":", 1)
|
||||||
|
|
||||||
scheme = _.scheme.upper()
|
scheme = _.scheme.upper()
|
||||||
hostname = hostnamePort[0]
|
hostname = hostnamePort[0]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user