Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Use path.resolve instead of path.join for loading ssl options #437

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Server/config/vorlon.httpconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down