diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-05-17 13:40:48 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-05-17 13:40:48 -0500 |
| commit | 946333991d4f06aa139e9659952b2ce2ca9e988d (patch) | |
| tree | 9f77ce336372a3e96bad8a1b7cbb6604b088a992 /src/slskd/Core/Options.cs | |
| parent | 5d16f6f9cccf72c29b8bbf206c851005e3375d79 (diff) | |
| download | slskd-946333991d4f06aa139e9659952b2ce2ca9e988d.tar.gz | |
mess with tests and validation
Diffstat (limited to 'src/slskd/Core/Options.cs')
| -rw-r--r-- | src/slskd/Core/Options.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 21f2c75f..3d9c8fb2 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -766,6 +766,7 @@ namespace slskd [EnvironmentVariable("INCOMPLETE_DIR")] [Description("path where incomplete downloads are saved")] [AbsolutePath] + [NonTraversingPath] [DirectoryExists(ensureWriteable: true)] [RequiresRestart] public string Incomplete { get; init; } = Program.DefaultIncompleteDirectory; @@ -777,6 +778,7 @@ namespace slskd [EnvironmentVariable("DOWNLOADS_DIR")] [Description("path where downloaded files are saved")] [AbsolutePath] + [NonTraversingPath] [DirectoryExists(ensureWriteable: true)] [RequiresRestart] public string Downloads { get; init; } = Program.DefaultDownloadsDirectory; @@ -2013,6 +2015,7 @@ namespace slskd [EnvironmentVariable("HTTP_SOCKET")] [Description("HTTP listen unix domain socket (UDS) path for web UI")] [AbsolutePath] + [NonTraversingPath] [RequiresRestart] public string Socket { get; init; } |
