[Yum-devel] [PATCH] Allow user to disable default proxies. BZ 814224.
Zdeněk Pavlas
zpavlas at redhat.com
Thu Apr 19 12:24:26 UTC 2012
libcurl uses $http_proxy et al by default. The only way
to disable this is setting proxy to "".
---
urlgrabber/grabber.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py
index f89b5d7..cedd865 100644
--- a/urlgrabber/grabber.py
+++ b/urlgrabber/grabber.py
@@ -1376,6 +1376,8 @@ class PyCurlFileObject(object):
# proxy
if opts.proxy:
+ if opts.proxy.endswith('://'):
+ opts.proxy = ''
self.curl_obj.setopt(pycurl.PROXY, opts.proxy)
self.curl_obj.setopt(pycurl.PROXYAUTH, pycurl.HTTPAUTH_ANY)
--
1.7.4.4
More information about the Yum-devel
mailing list