Allow unsetting the proxy with the --proxy option
This commit is contained in:
		| @@ -392,7 +392,10 @@ def _real_main(argv=None): | |||||||
|  |  | ||||||
|     # General configuration |     # General configuration | ||||||
|     cookie_processor = compat_urllib_request.HTTPCookieProcessor(jar) |     cookie_processor = compat_urllib_request.HTTPCookieProcessor(jar) | ||||||
|     if opts.proxy: |     if opts.proxy is not None: | ||||||
|  |         if opts.proxy == '': | ||||||
|  |             proxies = {} | ||||||
|  |         else: | ||||||
|             proxies = {'http': opts.proxy, 'https': opts.proxy} |             proxies = {'http': opts.proxy, 'https': opts.proxy} | ||||||
|     else: |     else: | ||||||
|         proxies = compat_urllib_request.getproxies() |         proxies = compat_urllib_request.getproxies() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister