summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2021-04-10 22:04:44 +0200
committerGitHub <noreply@github.com>2021-04-10 22:04:44 +0200
commit8d55d8b6be8731d37ccf6a29127b3a91a8319d0b (patch)
tree4495109b4d5a7a71d4d12fbe814292b1e5a97c6a /runtime/js
parent1c6602b85b50bc45cbf8cd1422091888e1561cd8 (diff)
feat(unstable): ALPN config in listenTls (#10065)
This commit adds the ability for users to configure ALPN protocols when calling `Deno.listenTls`.
Diffstat (limited to 'runtime/js')
-rw-r--r--runtime/js/40_tls.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/js/40_tls.js b/runtime/js/40_tls.js
index da43afaac..e11754b0d 100644
--- a/runtime/js/40_tls.js
+++ b/runtime/js/40_tls.js
@@ -51,6 +51,7 @@
keyFile,
hostname = "0.0.0.0",
transport = "tcp",
+ alpnProtocols,
}) {
const res = opListenTls({
port,
@@ -58,6 +59,7 @@
keyFile,
hostname,
transport,
+ alpnProtocols,
});
return new TLSListener(res.rid, res.localAddr);
}