aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-10-30 12:47:24 -0500
committerGitHub <noreply@github.com>2022-10-30 12:47:24 -0500
commit5c19d4fd6a7eb98d83a5f8c7e2c3092cb2b3b62a (patch)
treeb2264599945ff634f25286c485ee2848db7287e8 /src/slskd/Core
parentdbe3a9e82036a0db8049f3b884342dc98cc98d58 (diff)
parent8624a5387b6db17141fa6bb7601b1490c1f95c30 (diff)
downloadslskd-5c19d4fd6a7eb98d83a5f8c7e2c3092cb2b3b62a.tar.gz
Merge pull request #715 from slskd/secret-gen
Consolidate secret generation
Diffstat (limited to 'src/slskd/Core')
-rw-r--r--src/slskd/Core/Options.cs18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 9e89fc8e..f4ca99e5 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -131,24 +131,14 @@ namespace slskd
public bool GenerateCertificate { get; init; } = false;
/// <summary>
- /// Gets a value indicating whether to generate a random API key.
+ /// Gets a value indicating whether to generate a random secret.
/// </summary>
- [Argument('k', "generate-api-key")]
- [Description("generate random API key for HTTP/S")]
+ [Argument('k', "generate-secret")]
+ [Description("generate random secret of the specified length")]
[Obsolete("Used only for documentation; see Program for actual implementation")]
[JsonIgnore]
[YamlIgnore]
- public bool GenerateApiKey { get; init; } = false;
-
- /// <summary>
- /// Gets a value indicating whether to generate a random agent secret.
- /// </summary>
- [Argument('t', "generate-agent-secret")]
- [Description("generate random agent secret")]
- [Obsolete("Used only for documentation; see Program for actual implementation")]
- [JsonIgnore]
- [YamlIgnore]
- public bool GenerateAgentSecret { get; init; } = false;
+ public bool GenerateSecret { get; init; } = false;
/// <summary>
/// Gets a value indicating whether the application should run in debug mode.