aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-06-29 10:02:53 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-06-29 10:02:53 -0500
commita911ff7f153547d8fa1abb24a43fc6b852cde30c (patch)
tree3225db14c65d79e436af3ffed7aa1b3dd266a842 /src
parent47f073655985259de957d34e2d55efea02cb1be1 (diff)
downloadslskd-a911ff7f153547d8fa1abb24a43fc6b852cde30c.tar.gz
add option to ignore certificate errors
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Options.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs
index 74125297..a2a9d707 100644
--- a/src/slskd/Options.cs
+++ b/src/slskd/Options.cs
@@ -618,7 +618,7 @@ namespace slskd
/// </summary>
[Argument(default, "ftp-remote-path")]
[EnvironmentVariable("FTP_REMOTE_PATH")]
- [Description("remote path for uploads")]
+ [Description("remote path for FTP uploads")]
public string RemotePath { get; private set; } = "/";
/// <summary>
@@ -626,7 +626,7 @@ namespace slskd
/// </summary>
[Argument(default, "ftp-overwrite-existing")]
[EnvironmentVariable("FTP_OVERWRITE_EXISTING")]
- [Description("overwrite existing files")]
+ [Description("overwrite existing files when uploading to FTP")]
public bool OverwriteExisting { get; private set; } = true;
/// <summary>
@@ -643,9 +643,14 @@ namespace slskd
/// </summary>
[Argument(default, "ftp-retry-attempts")]
[EnvironmentVariable("FTP_RETRY_ATTEMPTS")]
- [Description("number of times failing uploads will be retried")]
+ [Description("number of times failing FTP uploads will be retried")]
[Range(0, 5)]
public int RetryAttempts { get; private set; } = 3;
+
+ [Argument(default, "ftp-ignore-certificate-errors")]
+ [EnvironmentVariable("FTP_IGNORE_CERTIFICATE_ERRORS")]
+ [Description("ignore FTP certificate errors")]
+ public bool IgnoreCertificateErrors { get; private set; } = false;
}
}
}