mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02: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:
parent
5e1a4fa3e4
commit
0259df9faf
16 changed files with 347 additions and 30 deletions
|
@ -78,8 +78,6 @@ if (!common.isWindows) {
|
|||
REQUEST_URL: requestUrl,
|
||||
http_proxy: `http://localhost:${proxy.address().port}`,
|
||||
HTTP_PROXY: `http://localhost:${proxy2.address().port}`,
|
||||
}, {
|
||||
stdout: 'Hello world',
|
||||
});
|
||||
assert.deepStrictEqual(logs, expectedLogs);
|
||||
assert.strictEqual(stderr.trim(), '');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue