diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-10-10 15:47:31 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-10 15:47:31 -0500 |
| commit | 409f66e9a851625346fb1309f6cd41e6a9770e9c (patch) | |
| tree | aec47cc2bf04ae5ba47be6f6071aaa7c4eef1e6f /src | |
| parent | 7c00e16196cb4e21467e6f94f9098de9e48a1219 (diff) | |
| parent | 9c84200a25ee590e30b5e10d5b9a648ae105730e (diff) | |
| download | slskd-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.cs | 2 |
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 { |
