fix for situations where proxy is set in environment, but the user tries to test something on localhost

This commit is contained in:
Miroslav Stampar 2010-01-19 13:47:35 +00:00
parent 49146e573a
commit 97840535c6

View File

@ -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"