From a911ff7f153547d8fa1abb24a43fc6b852cde30c Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 29 Jun 2021 10:02:53 -0500 Subject: add option to ignore certificate errors --- src/slskd/Options.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src') 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 /// [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; } = "/"; /// @@ -626,7 +626,7 @@ namespace slskd /// [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; /// @@ -643,9 +643,14 @@ namespace slskd /// [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; } } } -- cgit v1.2.3