From 403924e041ed678725cd347fd19b263f0efeabb8 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 11 Jan 2023 08:59:47 -0600 Subject: fix ContentPath --- src/slskd/Core/Options.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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"; -- cgit v1.2.3