mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-28 04:33:16 +00:00
Restyling old form of urlparse
This commit is contained in:
parent
da7f63f125
commit
acfeeb4f51
3 changed files with 8 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue