@@ -2999,6 +2999,21 @@ environment variables.
2999
2999
3000
3000
See ` SSL_CERT_DIR ` and ` SSL_CERT_FILE ` .
3001
3001
3002
+ ### ` --use-env-proxy `
3003
+
3004
+ <!-- YAML
3005
+ added: REPLACEME
3006
+ -->
3007
+
3008
+ > Stability: 1.1 - Active Development
3009
+
3010
+ When enabled, Node.js parses the ` HTTP_PROXY ` , ` HTTPS_PROXY ` and ` NO_PROXY `
3011
+ environment variables during startup, and tunnels requests over the
3012
+ specified proxy.
3013
+
3014
+ This is equivalent to setting the [ ` NODE_USE_ENV_PROXY=1 ` ] [ ] environment variable.
3015
+ When both are set, ` --use-env-proxy ` takes precedence.
3016
+
3002
3017
### ` --use-largepages=mode `
3003
3018
3004
3019
<!-- YAML
@@ -3498,6 +3513,7 @@ one is included in the list below.
3498
3513
* ` --track-heap-objects `
3499
3514
* ` --unhandled-rejections `
3500
3515
* ` --use-bundled-ca `
3516
+ * ` --use-env-proxy `
3501
3517
* ` --use-largepages `
3502
3518
* ` --use-openssl-ca `
3503
3519
* ` --use-system-ca `
@@ -3653,8 +3669,8 @@ When enabled, Node.js parses the `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY`
3653
3669
environment variables during startup, and tunnels requests over the
3654
3670
specified proxy.
3655
3671
3656
- This currently only affects requests sent over ` fetch() ` . Support for other
3657
- built-in ` http ` and ` https ` methods is under way .
3672
+ This can also be enabled using the [ ` --use-env-proxy ` ] [ ] command-line flag.
3673
+ When both are set, ` --use-env-proxy ` takes precedence .
3658
3674
3659
3675
### ` NODE_V8_COVERAGE=dir `
3660
3676
@@ -3984,12 +4000,14 @@ node --stack-trace-limit=12 -p -e "Error.stackTraceLimit" # prints 12
3984
4000
[ `--print` ] : #-p---print-script
3985
4001
[ `--redirect-warnings` ] : #--redirect-warningsfile
3986
4002
[ `--require` ] : #-r---require-module
4003
+ [ `--use-env-proxy` ] : #--use-env-proxy
3987
4004
[ `AsyncLocalStorage` ] : async_context.md#class-asynclocalstorage
3988
4005
[ `Buffer` ] : buffer.md#class-buffer
3989
4006
[ `CRYPTO_secure_malloc_init` ] : https://www.openssl.org/docs/man3.0/man3/CRYPTO_secure_malloc_init.html
3990
4007
[ `ERR_INVALID_TYPESCRIPT_SYNTAX` ] : errors.md#err_invalid_typescript_syntax
3991
4008
[ `ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX` ] : errors.md#err_unsupported_typescript_syntax
3992
4009
[ `NODE_OPTIONS` ] : #node_optionsoptions
4010
+ [ `NODE_USE_ENV_PROXY=1` ] : #node_use_env_proxy1
3993
4011
[ `NO_COLOR` ] : https://no-color.org
3994
4012
[ `Web Storage` ] : https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API
3995
4013
[ `YoungGenerationSizeFromSemiSpaceSize` ] : https://chromium.googlesource.com/v8/v8.git/+/refs/tags/10.3.129/src/heap/heap.cc#328
0 commit comments