mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
cli: add --use-env-proxy
This does the same as NODE_USE_ENV_PROXY. When both are set, like other options that can be configured from both sides, the CLI flag takes precedence. PR-URL: https://github.com/nodejs/node/pull/59151 Fixes: https://github.com/nodejs/node/issues/59100 Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
1 parent
42102594b1
commit
1486fedea1
16 files changed
+347
-30
No files matched your search
@@ -92,8 +92,6 @@ if (!common.isWindows) {
|
||||
https_proxy: `http://localhost:${proxy.address().port}`,
|
||||
HTTPS_PROXY: `http://localhost:${proxy2.address().port}`,
|
||||
NODE_EXTRA_CA_CERTS: fixtures.path('keys', 'fake-startcom-root-cert.pem'),
|
||||
}, {
|
||||
stdout: 'Hello world',
|
||||
});
|
||||
assert.deepStrictEqual(logs, expectedLogs);
|
||||
assert.strictEqual(stderr.trim(), '');
|
||||
|
||||
Reference in new issue
Block a user