mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-06 16:32:23 +01:00
fix for situations where proxy is set in environment, but the user tries to test something on localhost
This commit is contained in:
parent
49146e573a
commit
97840535c6
1 changed files with 2 additions and 0 deletions
|
|
@ -592,6 +592,8 @@ def __setHTTPProxy():
|
|||
global proxyHandler
|
||||
|
||||
if not conf.proxy:
|
||||
if conf.hostname in ('localhost', '127.0.0.1'):
|
||||
proxyHandler = urllib2.ProxyHandler({})
|
||||
return
|
||||
|
||||
debugMsg = "setting the HTTP proxy to pass by all HTTP requests"
|
||||
|
|
|
|||
Loading…
Reference in a new issue