summaryrefslogtreecommitdiff
path: root/ext/net/02_tls.js
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2022-10-26 21:04:27 +0200
committerGitHub <noreply@github.com>2022-10-26 19:04:27 +0000
commitf4f1f4f0b64030b744cfb43693af321ea8332bf4 (patch)
tree9d4e1fcf9ea9b92ef5a863fcd449edf8c0c9a834 /ext/net/02_tls.js
parentde580cedd24be22dc267d5b92538364ed9998a46 (diff)
feat(ext/net): reusePort for TCP on Linux (#16398)
Diffstat (limited to 'ext/net/02_tls.js')
-rw-r--r--ext/net/02_tls.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/net/02_tls.js b/ext/net/02_tls.js
index d3f906dbd..89913d1af 100644
--- a/ext/net/02_tls.js
+++ b/ext/net/02_tls.js
@@ -65,13 +65,14 @@
hostname = "0.0.0.0",
transport = "tcp",
alpnProtocols = undefined,
+ reusePort = false,
}) {
if (transport !== "tcp") {
throw new TypeError(`Unsupported transport: '${transport}'`);
}
const [rid, localAddr] = ops.op_net_listen_tls(
{ hostname, port },
- { cert, certFile, key, keyFile, alpnProtocols },
+ { cert, certFile, key, keyFile, alpnProtocols, reusePort },
);
return new TlsListener(rid, localAddr);
}