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