diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-12-01 09:14:43 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-12-01 09:14:43 -0600 |
| commit | 49c16a917cfa58ab9647d59dec5cccde7026a1f7 (patch) | |
| tree | 5d2fd5c1099dd09889883c25471f2fb1a04a4e93 /src | |
| parent | d3acd6eef23ccfe0549c0f052159748689dc77a1 (diff) | |
| parent | d89f605a2b0b8a453b4a1a92d32373a138929873 (diff) | |
| download | slskd-49c16a917cfa58ab9647d59dec5cccde7026a1f7.tar.gz | |
Merge remote-tracking branch 'origin' into docs
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Core/API/Controllers/OptionsController.cs | 4 | ||||
| -rw-r--r-- | src/slskd/Options.cs | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/slskd/Core/API/Controllers/OptionsController.cs b/src/slskd/Core/API/Controllers/OptionsController.cs index 60237878..aa5ffc3a 100644 --- a/src/slskd/Core/API/Controllers/OptionsController.cs +++ b/src/slskd/Core/API/Controllers/OptionsController.cs @@ -86,7 +86,7 @@ namespace slskd.Core.API [Route("yaml")] public IActionResult GetYamlFile() { - if (!OptionsSnapshot.Value.RemoteConfiguration) + if (!OptionsSnapshot.Value.NoRemoteConfiguration) { return Forbid(); } @@ -100,7 +100,7 @@ namespace slskd.Core.API [Route("yaml")] public IActionResult UpdateYamlFile([FromBody] string yaml) { - if (!OptionsSnapshot.Value.RemoteConfiguration) + if (!OptionsSnapshot.Value.NoRemoteConfiguration) { return Forbid(); } diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs index dbcd13b3..c4d675f3 100644 --- a/src/slskd/Options.cs +++ b/src/slskd/Options.cs @@ -184,10 +184,10 @@ namespace slskd /// <summary> /// Gets a value indicating whether remote configuration of options is allowed. /// </summary> - [Argument(default, "remote-configuration")] - [EnvironmentVariable("REMOTE_CONFIGURATION")] - [Description("allow remote configuration")] - public bool RemoteConfiguration { get; private set; } = false; + [Argument(default, "no-remote-configuration")] + [EnvironmentVariable("NO_REMOTE_CONFIGURATION")] + [Description("do not allow remote configuration")] + public bool NoRemoteConfiguration { get; private set; } = false; /// <summary> /// Gets the unique name for this instance. |
