mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-07 00:42: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
|
global proxyHandler
|
||||||
|
|
||||||
if not conf.proxy:
|
if not conf.proxy:
|
||||||
|
if conf.hostname in ('localhost', '127.0.0.1'):
|
||||||
|
proxyHandler = urllib2.ProxyHandler({})
|
||||||
return
|
return
|
||||||
|
|
||||||
debugMsg = "setting the HTTP proxy to pass by all HTTP requests"
|
debugMsg = "setting the HTTP proxy to pass by all HTTP requests"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue