mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Restyling old form of urlparse
This commit is contained in:
@@ -931,9 +931,9 @@ def _setHTTPProxy():
|
||||
logger.debug(debugMsg)
|
||||
|
||||
proxySplit = urlparse.urlsplit(conf.proxy)
|
||||
hostnamePort = proxySplit[1].split(":")
|
||||
hostnamePort = proxySplit.netloc.split(":")
|
||||
|
||||
scheme = proxySplit[0].upper()
|
||||
scheme = proxySplit.scheme.upper()
|
||||
hostname = hostnamePort[0]
|
||||
port = None
|
||||
username = None
|
||||
|
||||
Reference in New Issue
Block a user