diff options
author | Raccoon | 2017-06-01 19:20:42 +0800 |
---|---|---|
committer | GitHub | 2017-06-01 19:20:42 +0800 |
commit | 6e119603aba3038aad7096aab96476eea7ae564b (patch) | |
tree | e5017c852d4a90c54c2551118673af413d1f3074 /lib | |
parent | 0a6793747cf1f40467bcf3e562d358173fffcad1 (diff) | |
parent | bf3512f8f639a0f776197a7b3c83d8c36e8d0178 (diff) |
Merge pull request #472 from tkykm/patch-1
Read to correct tlsca file path
Diffstat (limited to '')
-rw-r--r-- | lib/config/index.js | 4 |
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 = { |