aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-06-25 09:20:25 -0500
committerJP Dillingham <jp@dillingham.me>2023-06-25 09:20:25 -0500
commit0300a0692f6d388f5a1b3d3c23d2a2ee0cf1d18b (patch)
treea93e576ea1229b8e81c3dec32bd89b587d70901f
parent1017eeee702535bb2c6dd3ea09e5574627a9a7d3 (diff)
downloadslskd-0300a0692f6d388f5a1b3d3c23d2a2ee0cf1d18b.tar.gz
add option to enable remote file management
-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")]