From bf3512f8f639a0f776197a7b3c83d8c36e8d0178 Mon Sep 17 00:00:00 2001 From: tkykm Date: Thu, 1 Jun 2017 19:58:55 +0900 Subject: [PATCH] Read to correct tlsca file path --- lib/config/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config/index.js b/lib/config/index.js index 6bc9a4191..bea5a6af3 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 = {