diff options
author | Luca Casonato <hello@lcas.dev> | 2022-10-26 21:04:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-26 19:04:27 +0000 |
commit | f4f1f4f0b64030b744cfb43693af321ea8332bf4 (patch) | |
tree | 9d4e1fcf9ea9b92ef5a863fcd449edf8c0c9a834 /ext/net/02_tls.js | |
parent | de580cedd24be22dc267d5b92538364ed9998a46 (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.js | 3 |
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); } |