diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-05-16 08:47:11 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-16 08:47:11 -0500 |
| commit | dfffce208c34165b83e7b2a7192cbbc81cd3a47e (patch) | |
| tree | 6716a4cefe9194283678d9b788491fd8c31874ea /src/slskd/Core | |
| parent | 5b9309b4dba91fe317f1c04bc02493cf3d1f18f3 (diff) | |
| parent | 014c9616e1e3120a729896ddd9bd701e7d84ec9d (diff) | |
| download | slskd-dfffce208c34165b83e7b2a7192cbbc81cd3a47e.tar.gz | |
Merge branch 'master' into dependabot/npm_and_yarn/src/web/babel/plugin-transform-modules-systemjs-7.29.4
Diffstat (limited to 'src/slskd/Core')
| -rw-r--r-- | src/slskd/Core/Options.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 8cc369af..51b3cab1 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -198,6 +198,7 @@ namespace slskd [Argument('i', "instance-name")] [EnvironmentVariable("INSTANCE_NAME")] [Description("optional; a unique name for this instance")] + [DisallowedCharacters('/', '\\')] [RequiresRestart] public string InstanceName { get; init; } = "default"; @@ -654,6 +655,7 @@ namespace slskd [Description("the name for this agent")] [StringLength(255, MinimumLength = 1)] [NotNullOrWhiteSpace] + [DisallowedCharacters('/', '\\')] [Secret] public string InstanceName { get; init; } @@ -765,6 +767,7 @@ namespace slskd [Argument(default, "incomplete")] [EnvironmentVariable("INCOMPLETE_DIR")] [Description("path where incomplete downloads are saved")] + [AbsolutePath] [DirectoryExists(ensureWriteable: true)] [RequiresRestart] public string Incomplete { get; init; } = Program.DefaultIncompleteDirectory; @@ -775,6 +778,7 @@ namespace slskd [Argument('o', "downloads")] [EnvironmentVariable("DOWNLOADS_DIR")] [Description("path where downloaded files are saved")] + [AbsolutePath] [DirectoryExists(ensureWriteable: true)] [RequiresRestart] public string Downloads { get; init; } = Program.DefaultDownloadsDirectory; @@ -2010,7 +2014,7 @@ namespace slskd [Argument(default, "http-socket")] [EnvironmentVariable("HTTP_SOCKET")] [Description("HTTP listen unix domain socket (UDS) path for web UI")] - [AbsoluteFilePath] + [AbsolutePath] [RequiresRestart] public string Socket { get; init; } |
