Skip to content

Commit 8f5ac38

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 922c13c commit 8f5ac38

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
@@ -308,9 +308,9 @@ instance, the following makes `ECDHE-RSA-AES128-GCM-SHA256:!RC4` the default TLS
308308
cipher suite:
309309

310310
```bash
311-
node --tls-cipher-list="ECDHE-RSA-AES128-GCM-SHA256:!RC4" server.js
311+
node --tls-cipher-list='ECDHE-RSA-AES128-GCM-SHA256:!RC4' server.js
312312

313-
export NODE_OPTIONS=--tls-cipher-list="ECDHE-RSA-AES128-GCM-SHA256:!RC4"
313+
export NODE_OPTIONS=--tls-cipher-list='ECDHE-RSA-AES128-GCM-SHA256:!RC4'
314314
node server.js
315315
```
316316

0 commit comments

Comments
 (0)