change 'proxy-env' default to 'true'
This commit is contained in:
@@ -609,7 +609,7 @@ extractor.*.proxy-env
|
|||||||
Type
|
Type
|
||||||
``bool``
|
``bool``
|
||||||
Default
|
Default
|
||||||
``false``
|
``true``
|
||||||
Description
|
Description
|
||||||
Collect proxy configuration information from environment variables
|
Collect proxy configuration information from environment variables
|
||||||
(``HTTP_PROXY``, ``HTTPS_PROXY``, ``NO_PROXY``)
|
(``HTTP_PROXY``, ``HTTPS_PROXY``, ``NO_PROXY``)
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
"tls12" : true,
|
"tls12" : true,
|
||||||
"browser" : null,
|
"browser" : null,
|
||||||
"proxy" : null,
|
"proxy" : null,
|
||||||
"proxy-env" : false,
|
"proxy-env" : true,
|
||||||
"source-address": null,
|
"source-address": null,
|
||||||
"retries" : 4,
|
"retries" : 4,
|
||||||
"retry-codes" : [],
|
"retry-codes" : [],
|
||||||
|
|||||||
@@ -348,7 +348,7 @@ class Extractor():
|
|||||||
ssl_options = ssl_ciphers = 0
|
ssl_options = ssl_ciphers = 0
|
||||||
|
|
||||||
# .netrc Authorization headers are alwsays disabled
|
# .netrc Authorization headers are alwsays disabled
|
||||||
session.trust_env = True if self.config("proxy-env", False) else False
|
session.trust_env = True if self.config("proxy-env", True) else False
|
||||||
|
|
||||||
browser = self.config("browser")
|
browser = self.config("browser")
|
||||||
if browser is None:
|
if browser is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user