Skip to content

Commit

Permalink
fix: TLS SNI wasn't working due to missing context (#3383)
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson authored Jul 24, 2024
1 parent 45d8b3d commit cc5e9a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tls_socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ exports.get_certs_dir = async (tlsDir) => {

// all opts are applied, generate TLS context
try {
ctxByHost[cn] = tls.createSecureContext(certsByHost.get(cn));
ctxByHost[cn] = tls.createSecureContext(certsByHost.get([cn]));
}
catch (err) {
log.error(`CN '${cn}' loading got: ${err.message}`)
Expand Down

0 comments on commit cc5e9a4

Please sign in to comment.