dbiesecke
7/10/2015 - 7:14 AM

kodi-curl-PRET.patch

kodi-curl-PRET.patch

diff --git a/xbmc/filesystem/CurlFile.cpp b/xbmc/filesystem/CurlFile.cpp
index a376105..7f5294f 100644
--- a/xbmc/filesystem/CurlFile.cpp
+++ b/xbmc/filesystem/CurlFile.cpp
@@ -461,8 +461,8 @@ void CCurlFile::SetCommonOptions(CReadState* state)
   g_curlInterface.easy_setopt(h, CURLOPT_WRITEHEADER, state);
   g_curlInterface.easy_setopt(h, CURLOPT_HEADERFUNCTION, header_callback);
   g_curlInterface.easy_setopt(h, CURLOPT_HEADER, FALSE);
-
-  g_curlInterface.easy_setopt(h, CURLOPT_FTP_USE_EPSV, 0); // turn off epsv
+  g_curlInterface.easy_setopt(h, CURLOPT_FTP_USE_PRET, 1); // turn off epsv
+  g_curlInterface.easy_setopt(h, CURLOPT_FTP_USE_EPSV, 1); // turn off epsv
 
   // Allow us to follow two redirects
   g_curlInterface.easy_setopt(h, CURLOPT_FOLLOWLOCATION, TRUE);