aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/Options.cs
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 /src/slskd/Core/Options.cs
parent1017eeee702535bb2c6dd3ea09e5574627a9a7d3 (diff)
downloadslskd-0300a0692f6d388f5a1b3d3c23d2a2ee0cf1d18b.tar.gz
add option to enable remote file management
Diffstat (limited to 'src/slskd/Core/Options.cs')
-rw-r--r--src/slskd/Core/Options.cs9
1 files changed, 8 insertions, 1 deletions
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")]