summaryrefslogtreecommitdiff
path: root/ext/net/02_tls.js
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2022-02-24 13:16:56 +0900
committerGitHub <noreply@github.com>2022-02-24 13:16:56 +0900
commit3e8180c793f1dd7437a497ffdb0cf7e919a9a5c3 (patch)
tree23f834a6ac3eb18da9bf2b18d93f288bdacbf06d /ext/net/02_tls.js
parentf8b73ab97e90f5e4313b0e725fe14d1ee0df01b4 (diff)
feat(ext/net): support cert, key options in listenTls (#13740)
Diffstat (limited to 'ext/net/02_tls.js')
-rw-r--r--ext/net/02_tls.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/net/02_tls.js b/ext/net/02_tls.js
index 90f395193..86f651521 100644
--- a/ext/net/02_tls.js
+++ b/ext/net/02_tls.js
@@ -65,7 +65,9 @@
function listenTls({
port,
+ cert,
certFile,
+ key,
keyFile,
hostname = "0.0.0.0",
transport = "tcp",
@@ -73,7 +75,9 @@
}) {
const res = opListenTls({
port,
+ cert,
certFile,
+ key,
keyFile,
hostname,
transport,