From a0c778b9c349d6665635b20eb54e63e792c1eb1e Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Sat, 9 Oct 2021 15:33:23 -0400 Subject: [PATCH] Correct key semantics --- src/server.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/server.js b/src/server.js index 8af455e4..48fa5a57 100644 --- a/src/server.js +++ b/src/server.js @@ -296,13 +296,12 @@ const server = program => { res.status(500).send({ status: 500, errorMessage: 'internal error' }) }) - const CA = - program.httpsCert || LightningServices.servicesConfig.lndCertPath - const CA_KEY = program.httpsCertKey || CA.replace('cert', 'key') + const CA = program.httpsCert + const CA_KEY = program.httpsCertKey const createServer = () => { try { - if (LightningServices.servicesConfig.lndCertPath && program.useTLS) { + if (program.useTLS) { const key = FS.readFileSync(CA_KEY, 'utf-8') const cert = FS.readFileSync(CA, 'utf-8')