Skip to content

Commit bf3512f

Browse files
authored
Read to correct tlsca file path
1 parent 0a67937 commit bf3512f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/config/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ if (config.ldap.tlsca) {
3434
let ca = config.ldap.tlsca.split(',')
3535
let caContent = []
3636
for (let i of ca) {
37-
if (fs.existsSync(ca[i])) {
38-
caContent.push(fs.readFileSync(ca[i], 'utf8'))
37+
if (fs.existsSync(i)) {
38+
caContent.push(fs.readFileSync(i, 'utf8'))
3939
}
4040
}
4141
let tlsOptions = {

0 commit comments

Comments
 (0)