Skip to content

Commit 287b11d

Browse files
sam-githubjasnell
authored andcommitted
src: allow --tls-cipher-list in NODE_OPTIONS
PR-URL: #13172 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
1 parent 2648c8d commit 287b11d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/api/cli.md

+1
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ Node options that are allowed are:
444444
- `--redirect-warnings`
445445
- `--require`, `-r`
446446
- `--throw-deprecation`
447+
- `--tls-cipher-list`
447448
- `--trace-deprecation`
448449
- `--trace-events-categories`
449450
- `--trace-events-enabled`

src/node.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -3712,7 +3712,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
37123712
size_t arglen = eq ? eq - arg : strlen(arg);
37133713

37143714
static const char* whitelist[] = {
3715-
// Node options
3715+
// Node options, sorted in `node --help` order for ease of comparison.
37163716
"--require", "-r",
37173717
"--inspect",
37183718
"--inspect-brk",
@@ -3730,6 +3730,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
37303730
"--track-heap-objects",
37313731
"--zero-fill-buffers",
37323732
"--v8-pool-size",
3733+
"--tls-cipher-list",
37333734
"--use-bundled-ca",
37343735
"--use-openssl-ca",
37353736
"--enable-fips",

0 commit comments

Comments
 (0)