From 97840535c6c439a9d0993b80d87b38bee3d66647 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 19 Jan 2010 13:47:35 +0000 Subject: [PATCH] fix for situations where proxy is set in environment, but the user tries to test something on localhost --- lib/core/option.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/core/option.py b/lib/core/option.py index 597107534..2e658bf64 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -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"