Skip to content

Commit 24aadbd

Browse files
YoRyanstamparm
authored andcommitted
Support IPv6 literals ("[::1]:8080") in the proxy switch. (#4041)
1 parent 3145de1 commit 24aadbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ def _setHTTPHandlers():
995995
errMsg = "invalid proxy address '%s' ('%s')" % (conf.proxy, getSafeExString(ex))
996996
raise SqlmapSyntaxException(errMsg)
997997

998-
hostnamePort = _.netloc.split(":")
998+
hostnamePort = _.netloc.rsplit(":", 1)
999999

10001000
scheme = _.scheme.upper()
10011001
hostname = hostnamePort[0]

0 commit comments

Comments
 (0)