diff --git a/source/shared_lib/sources/platform/posix/miniftpclient.cpp b/source/shared_lib/sources/platform/posix/miniftpclient.cpp index d413aaa5e..857c1b55d 100644 --- a/source/shared_lib/sources/platform/posix/miniftpclient.cpp +++ b/source/shared_lib/sources/platform/posix/miniftpclient.cpp @@ -1002,7 +1002,7 @@ pair FTPClientThread::getFileFromServer(FTP_Clien curl_easy_setopt(curl, CURLOPT_DIRLISTONLY, 1); } curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L); - curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, file_progress); + curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, file_progress); curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, &ftpfile); // Max 10 minutes to transfer