diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-11-01 20:58:10 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-11-02 01:17:13 +0100 |
| commit | 0d7d4fb3472a30f7706baab0703114ec32d5a2af (patch) | |
| tree | 6b57993e0b3e899c62368f333378a8791ac800eb /src/lib/curl_uploader.cc | |
| parent | 98a8b5835aca46d8abb6f59513a56648f2c234ba (diff) | |
Add passive mode option to TMS upload.
Disabling this fixes TMS upload with some FTP servers
(reported on a Synology NAS).
Diffstat (limited to 'src/lib/curl_uploader.cc')
| -rw-r--r-- | src/lib/curl_uploader.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/curl_uploader.cc b/src/lib/curl_uploader.cc index 6fe7aba14..9416a17fb 100644 --- a/src/lib/curl_uploader.cc +++ b/src/lib/curl_uploader.cc @@ -58,6 +58,9 @@ CurlUploader::CurlUploader (function<void (string)> set_status, function<void (f curl_easy_setopt (_curl, CURLOPT_READDATA, this); curl_easy_setopt (_curl, CURLOPT_USERNAME, Config::instance()->tms_user().c_str()); curl_easy_setopt (_curl, CURLOPT_PASSWORD, Config::instance()->tms_password().c_str()); + if (!Config::instance()->tms_passive()) { + curl_easy_setopt(_curl, CURLOPT_FTPPORT, "-"); + } } |
