aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-10-10 15:47:31 -0500
committerGitHub <noreply@github.com>2022-10-10 15:47:31 -0500
commit409f66e9a851625346fb1309f6cd41e6a9770e9c (patch)
treeaec47cc2bf04ae5ba47be6f6071aaa7c4eef1e6f /src
parent7c00e16196cb4e21467e6f94f9098de9e48a1219 (diff)
parent9c84200a25ee590e30b5e10d5b9a648ae105730e (diff)
downloadslskd-409f66e9a851625346fb1309f6cd41e6a9770e9c.tar.gz
Merge pull request #687 from skar07/contentPath-relative-path
Update contentPath to use AppContext.BaseDirectory
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Program.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index 5414fccf..56ab6317 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -765,7 +765,7 @@ namespace slskd
// serve static content from the configured path
FileServerOptions fileServerOptions = default;
- var contentPath = Path.GetFullPath(OptionsAtStartup.Web.ContentPath);
+ var contentPath = Path.Combine(AppContext.BaseDirectory, OptionsAtStartup.Web.ContentPath);
fileServerOptions = new FileServerOptions
{