diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-11-09 21:37:20 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-09 21:37:20 -0600 |
| commit | 7fe7771af831bb6d46629869dc2490d8f14b7cf9 (patch) | |
| tree | 4499b75e43e9a3395a7d02ea75d959a40447ff46 /src/slskd/Integrations/FTP/FTPClientFactory.cs | |
| parent | 746f40934d56637a1af529285a4054720f22f4a8 (diff) | |
| parent | 86f5e46c2dfe595d8a970cc2f9e49d2520f14b55 (diff) | |
| download | slskd-7fe7771af831bb6d46629869dc2490d8f14b7cf9.tar.gz | |
Merge pull request #245 from slskd/config
Move the default configuration location to the App directory, create a Docker volume for /app
Diffstat (limited to 'src/slskd/Integrations/FTP/FTPClientFactory.cs')
| -rw-r--r-- | src/slskd/Integrations/FTP/FTPClientFactory.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/slskd/Integrations/FTP/FTPClientFactory.cs b/src/slskd/Integrations/FTP/FTPClientFactory.cs index e9ee0721..2e41ab03 100644 --- a/src/slskd/Integrations/FTP/FTPClientFactory.cs +++ b/src/slskd/Integrations/FTP/FTPClientFactory.cs @@ -37,7 +37,7 @@ namespace slskd.Integrations.FTP OptionsMonitor = optionsMonitor; } - private FTPOptions FTPOptions => OptionsMonitor.CurrentValue.Integration.FTP; + private FtpOptions FtpOptions => OptionsMonitor.CurrentValue.Integration.Ftp; private IOptionsMonitor<Options> OptionsMonitor { get; set; } /// <summary> @@ -46,9 +46,9 @@ namespace slskd.Integrations.FTP /// <returns>The created instance.</returns> public FtpClient CreateFtpClient() { - var client = new FtpClient(FTPOptions.Address, FTPOptions.Port, FTPOptions.Username, FTPOptions.Password); - client.EncryptionMode = ParseFtpEncryptionMode(FTPOptions.EncryptionMode); - client.ValidateAnyCertificate = FTPOptions.IgnoreCertificateErrors; + var client = new FtpClient(FtpOptions.Address, FtpOptions.Port, FtpOptions.Username, FtpOptions.Password); + client.EncryptionMode = ParseFtpEncryptionMode(FtpOptions.EncryptionMode); + client.ValidateAnyCertificate = FtpOptions.IgnoreCertificateErrors; return client; } |
