aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-11-28 17:32:21 -0600
committerJP Dillingham <jpdillingham@gmail.com>2021-11-28 17:32:21 -0600
commit7ef6d517be16672ee8854e2b79d5bf7438068f5a (patch)
treec3530afd409e44d10d728bf899a35457f885094d /src
parent735e7c6d0ac5a90762b46cf94d36334656bdc3f2 (diff)
downloadslskd-7ef6d517be16672ee8854e2b79d5bf7438068f5a.tar.gz
default remote configuration to true
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Core/API/Controllers/OptionsController.cs4
-rw-r--r--src/slskd/Options.cs8
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 4a9df941..e85b3a10 100644
--- a/src/slskd/Options.cs
+++ b/src/slskd/Options.cs
@@ -180,10 +180,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.