Skip to content

Commit

Permalink
catch ENOENT for config/tls
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed May 3, 2024
1 parent 8f30376 commit 6097b46
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tls_socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,15 @@ exports.getSocketOpts = async (name) => {
// startup time, load the config/tls dir
if (!certsByHost['*']) this.load_tls_ini();

await this.get_certs_dir('tls')
try {
await this.get_certs_dir('tls')
}
catch (err) {
if (err.code !== 'ENOENT') {
console.error(err.messsage)
log.error(err)
}
}

return certsByHost[name] || certsByHost['*']
}
Expand Down

0 comments on commit 6097b46

Please sign in to comment.