Skip to content

Commit

Permalink
Update 02_tls.js
Browse files Browse the repository at this point in the history
Signed-off-by: Emrul <[email protected]>
  • Loading branch information
emrul committed Dec 7, 2023
1 parent 2c9e0fd commit 6d3904b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ext/net/02_tls.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,19 @@ async function startTls(
hostname = "127.0.0.1",
certFile = undefined,
caCerts = [],
alpnProtocols = undefined,
certChain = undefined,
privateKey = undefined,
alpnProtocols = undefined
} = {},
) {
const { 0: rid, 1: localAddr, 2: remoteAddr } = await opStartTls({
rid: conn.rid,
hostname,
certFile,
caCerts,
alpnProtocols,
certChain,
privateKey,
alpnProtocols
});
return new TlsConn(rid, remoteAddr, localAddr);
}
Expand Down

0 comments on commit 6d3904b

Please sign in to comment.