Use rejectUnauthorized: conf.verifyTLSCertificate if no TLS is activated

Use rejectUnauthorized: conf.verifyTLSCertificate if no TLS is activated since ldaps could be used.
pull/6843/head
Patrick Othmer 7 months ago committed by GitHub
parent 38a46e68ea
commit b0be7be05d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -75,11 +75,7 @@ module.exports = {
}
function getTlsOptions(conf) {
if (!conf.tlsEnabled) {
return {}
}
if (!conf.tlsCertPath) {
if (!conf.tlsEnabled || !conf.tlsCertPath) {
return {
rejectUnauthorized: conf.verifyTLSCertificate
}

Loading…
Cancel
Save