Skip to content

Commit f8baecc

Browse files
danbevcodebytere
authored andcommitted
doc: use single quotes in --tls-cipher-list
Currently, running the example code will produce the following error in bash: $ node --tls-cipher-list="ECDHE-RSA-AES128-GCM-SHA256:!RC4" server.js bash: !RC4: event not found This commit changes the two examples to use single quotes to avoid the shell from trying to interpret '!' as the history command. PR-URL: #33709 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 4654e23 commit f8baecc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/tls.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@ instance, the following makes `ECDHE-RSA-AES128-GCM-SHA256:!RC4` the default TLS
312312
cipher suite:
313313

314314
```bash
315-
node --tls-cipher-list="ECDHE-RSA-AES128-GCM-SHA256:!RC4" server.js
315+
node --tls-cipher-list='ECDHE-RSA-AES128-GCM-SHA256:!RC4' server.js
316316

317-
export NODE_OPTIONS=--tls-cipher-list="ECDHE-RSA-AES128-GCM-SHA256:!RC4"
317+
export NODE_OPTIONS=--tls-cipher-list='ECDHE-RSA-AES128-GCM-SHA256:!RC4'
318318
node server.js
319319
```
320320

0 commit comments

Comments
 (0)