Merge pull request #472 from tkykm/patch-1
Read to correct tlsca file path
This commit is contained in:
commit
6e119603ab
1 changed files with 2 additions and 2 deletions
|
@ -34,8 +34,8 @@ if (config.ldap.tlsca) {
|
||||||
let ca = config.ldap.tlsca.split(',')
|
let ca = config.ldap.tlsca.split(',')
|
||||||
let caContent = []
|
let caContent = []
|
||||||
for (let i of ca) {
|
for (let i of ca) {
|
||||||
if (fs.existsSync(ca[i])) {
|
if (fs.existsSync(i)) {
|
||||||
caContent.push(fs.readFileSync(ca[i], 'utf8'))
|
caContent.push(fs.readFileSync(i, 'utf8'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let tlsOptions = {
|
let tlsOptions = {
|
||||||
|
|
Loading…
Reference in a new issue