[common] add 'proxy-env' option

(#6134, #6455)
disable using environment proxies by default
This commit is contained in:
Mike Fährmann
2024-11-15 17:59:54 +01:00
parent 0a72a5009c
commit c82f3db098
2 changed files with 16 additions and 1 deletions

View File

@@ -345,6 +345,9 @@ class Extractor():
headers.clear()
ssl_options = ssl_ciphers = 0
# .netrc Authorization headers are alwsays disabled
session.trust_env = True if self.config("proxy-env", False) else False
browser = self.config("browser")
if browser is None:
browser = self.browser