diff --git a/lib/core/option.py b/lib/core/option.py index bd89c64ce..b7f59e216 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1000,6 +1000,10 @@ def _setHTTPProxy(): """ global proxyHandler + for _ in ("http", "https"): + if hasattr(proxyHandler, "%s_open" % _): + delattr(proxyHandler, "%s_open" % _) + if not conf.proxy: if conf.proxyList: conf.proxy = conf.proxyList[0]