summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/config/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/config/index.js b/lib/config/index.js
index 6bc9a419..bea5a6af 100644
--- a/lib/config/index.js
+++ b/lib/config/index.js
@@ -34,8 +34,8 @@ if (config.ldap.tlsca) {
let ca = config.ldap.tlsca.split(',')
let caContent = []
for (let i of ca) {
- if (fs.existsSync(ca[i])) {
- caContent.push(fs.readFileSync(ca[i], 'utf8'))
+ if (fs.existsSync(i)) {
+ caContent.push(fs.readFileSync(i, 'utf8'))
}
}
let tlsOptions = {