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 8 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) { function getTlsOptions(conf) {
if (!conf.tlsEnabled) { if (!conf.tlsEnabled || !conf.tlsCertPath) {
return {}
}
if (!conf.tlsCertPath) {
return { return {
rejectUnauthorized: conf.verifyTLSCertificate rejectUnauthorized: conf.verifyTLSCertificate
} }

Loading…
Cancel
Save