aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/slskd.example.yml1
-rw-r--r--src/slskd/Core/Options.cs9
2 files changed, 9 insertions, 1 deletions
diff --git a/config/slskd.example.yml b/config/slskd.example.yml
index cbf59dab..6a36161e 100644
--- a/config/slskd.example.yml
+++ b/config/slskd.example.yml
@@ -1,5 +1,6 @@
# debug: false
# remote_configuration: false
+# remote_file_management: false
# instance_name: default
# flags:
# no_logo: false
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 1d9f814c..c438c03c 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -31,7 +31,6 @@ namespace slskd
using NetTools;
using slskd.Authentication;
using slskd.Configuration;
- using slskd.Cryptography;
using slskd.Relay;
using slskd.Shares;
using slskd.Validation;
@@ -159,6 +158,14 @@ namespace slskd
public bool RemoteConfiguration { get; init; } = false;
/// <summary>
+ /// Gets a value indicating whether remote file management is allowed.
+ /// </summary>
+ [Argument(default, "remote-file-management")]
+ [EnvironmentVariable("REMOTE_FILE_MANAGEMENT")]
+ [Description("allow remote file management")]
+ public bool RemoteFileManagement { get; init; } = false;
+
+ /// <summary>
/// Gets the unique name for this instance.
/// </summary>
[Argument('i', "instance-name")]