From 8a7e5e9514ac1bc58eafde93942c14845d75ddb8 Mon Sep 17 00:00:00 2001 From: Marc Udoff Date: Thu, 21 Jun 2018 16:26:55 -0400 Subject: [PATCH] Use path.resolve instead of path.join for loading ssl options This is a breaking change if your key/crt started with a '/' > path.join('/foo/bar', '../', 'baz') '/foo/baz' > path.join('/foo/bar', '../', '/baz') '/foo/baz' > path.resolve('/foo/bar', '../', 'baz') '/foo/baz' > path.resolve('/foo/bar', '../', '/baz') '/baz' --- Server/config/vorlon.httpconfig.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/config/vorlon.httpconfig.ts b/Server/config/vorlon.httpconfig.ts index 90b9332a..66f1d0e5 100644 --- a/Server/config/vorlon.httpconfig.ts +++ b/Server/config/vorlon.httpconfig.ts @@ -30,8 +30,8 @@ export module VORLON { this.protocol = "https"; this.httpModule = https; this.options = { - key: fs.readFileSync(path.join(__dirname, "../", catalog.SSLkey)), - cert: fs.readFileSync(path.join(__dirname, "../", catalog.SSLcert)) + key: fs.readFileSync(path.resolve(__dirname, "../", catalog.SSLkey)), + cert: fs.readFileSync(path.resolve(__dirname, "../", catalog.SSLcert)) } } else {