From 2c856e441c57623d5a4fa157a803b589416629e6 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 1 Dec 2021 09:22:57 -0600 Subject: default remote configuration to false again --- src/slskd/Core/API/Controllers/OptionsController.cs | 4 ++-- src/slskd/Options.cs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/slskd/Core/API/Controllers/OptionsController.cs b/src/slskd/Core/API/Controllers/OptionsController.cs index aa5ffc3a..60237878 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.NoRemoteConfiguration) + if (!OptionsSnapshot.Value.RemoteConfiguration) { return Forbid(); } @@ -100,7 +100,7 @@ namespace slskd.Core.API [Route("yaml")] public IActionResult UpdateYamlFile([FromBody] string yaml) { - if (!OptionsSnapshot.Value.NoRemoteConfiguration) + if (!OptionsSnapshot.Value.RemoteConfiguration) { return Forbid(); } diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs index c4d675f3..dbcd13b3 100644 --- a/src/slskd/Options.cs +++ b/src/slskd/Options.cs @@ -184,10 +184,10 @@ namespace slskd /// /// Gets a value indicating whether remote configuration of options is allowed. /// - [Argument(default, "no-remote-configuration")] - [EnvironmentVariable("NO_REMOTE_CONFIGURATION")] - [Description("do not allow remote configuration")] - public bool NoRemoteConfiguration { get; private set; } = false; + [Argument(default, "remote-configuration")] + [EnvironmentVariable("REMOTE_CONFIGURATION")] + [Description("allow remote configuration")] + public bool RemoteConfiguration { get; private set; } = false; /// /// Gets the unique name for this instance. -- cgit v1.2.3