1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 09:39:08 -05:00

docs(cli/dts): fix Deno.startTls example (#10657)

This commit is contained in:
Casper Beyer 2021-05-17 17:44:07 +08:00 committed by GitHub
parent 5151afa123
commit 75d547809f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -982,7 +982,7 @@ declare namespace Deno {
*
* ```ts
* const conn = await Deno.connect({ port: 80, hostname: "127.0.0.1" });
* const tlsConn = await Deno.startTls(conn, { certFile: "./certs/my_custom_root_CA.pem", hostname: "127.0.0.1", port: 80 });
* const tlsConn = await Deno.startTls(conn, { certFile: "./certs/my_custom_root_CA.pem", hostname: "localhost" });
* ```
*
* Requires `allow-net` permission.