aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-01-11 09:11:06 -0600
committerGitHub <noreply@github.com>2023-01-11 09:11:06 -0600
commitd06431f2024daf81d99ad7ba6e3dcca3692fefc8 (patch)
tree1ac021e1b39d26ee1a4b2b40c5480c3e8e74f85f /src/slskd/Core
parent8948a338854b9033cc38cd6188866433a81d28d4 (diff)
parent403924e041ed678725cd347fd19b263f0efeabb8 (diff)
downloadslskd-d06431f2024daf81d99ad7ba6e3dcca3692fefc8.tar.gz
Merge pull request #847 from slskd/content
Fix bug with validation of ContentPath
Diffstat (limited to 'src/slskd/Core')
-rw-r--r--src/slskd/Core/Options.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 063da9e6..05331cd4 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -1391,8 +1391,7 @@ namespace slskd
[EnvironmentVariable("CONTENT_PATH")]
[Description("path to static web content")]
[StringLength(255, MinimumLength = 1)]
- [DirectoryExists]
- [DirectoryIsRelative]
+ [DirectoryExists(relativeToApplicationDirectory: true)]
[RequiresRestart]
public string ContentPath { get; init; } = "wwwroot";