Skip to content

Commit 16f8f9b

Browse files
sam-githubMylesBorins
authored andcommitted
src: allow --tls-cipher-list in NODE_OPTIONS
Backport-PR-URL: #12677 PR-URL: #13172 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
1 parent 12b66e6 commit 16f8f9b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/api/cli.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ Node options that are allowed are:
356356
- `--redirect-warnings`
357357
- `--require`, `-r`
358358
- `--throw-deprecation`
359+
- `--tls-cipher-list`
359360
- `--trace-deprecation`
360361
- `--trace-sync-io`
361362
- `--trace-warnings`

src/node.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3786,7 +3786,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
37863786
size_t arglen = eq ? eq - arg : strlen(arg);
37873787

37883788
static const char* whitelist[] = {
3789-
// Node options
3789+
// Node options, sorted in `node --help` order for ease of comparison.
37903790
"--require", "-r",
37913791
"--debug",
37923792
"--debug-brk",
@@ -3802,6 +3802,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
38023802
"--track-heap-objects",
38033803
"--zero-fill-buffers",
38043804
"--v8-pool-size",
3805+
"--tls-cipher-list",
38053806
"--use-bundled-ca",
38063807
"--use-openssl-ca",
38073808
"--enable-fips",

0 commit comments

Comments
 (0)