From af0c79be657bd4dd56dc2ef3ccc6bb64c4328162 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Thu, 1 Jul 2021 09:18:03 -0500 Subject: use option enabled flag to determine whether to attempt FTP uploads --- src/slskd/Application/Transfer/API/Controllers/TransfersController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slskd/Application/Transfer/API/Controllers/TransfersController.cs b/src/slskd/Application/Transfer/API/Controllers/TransfersController.cs index d0bff636..97b86689 100644 --- a/src/slskd/Application/Transfer/API/Controllers/TransfersController.cs +++ b/src/slskd/Application/Transfer/API/Controllers/TransfersController.cs @@ -135,7 +135,7 @@ namespace slskd.Transfer.API MoveFile(request.Filename, Options.Directories.Incomplete, Options.Directories.Downloads); - if (FTP.Enabled) + if (Options.Integration.FTP.Enabled) { _ = FTP.UploadAsync(request.Filename.ToLocalFilename(Options.Directories.Downloads)); } -- cgit v1.2.3