summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortkykm2017-06-01 19:58:55 +0900
committerGitHub2017-06-01 19:58:55 +0900
commitbf3512f8f639a0f776197a7b3c83d8c36e8d0178 (patch)
treee5017c852d4a90c54c2551118673af413d1f3074
parent0a6793747cf1f40467bcf3e562d358173fffcad1 (diff)
Read to correct tlsca file path
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 = {