mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 11:45:46 +03: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
|
@ -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 New Issue
Block a user