mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
add http proxy support for yt
Conflicts:
src/gui/proxyserver_setup.cpp
src/neutrino.cpp
src/system/httptool.cpp
src/system/settings.h
Origin commit data
------------------
Branch: ni/coolstream
Commit: 58124802ce
Author: martii <m4rtii@gmx.de>
Date: 2013-06-16 (Sun, 16 Jun 2013)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -140,6 +140,14 @@ bool cYTCache::download(MI_MOVIE_INFO *mi)
|
||||
char cerror[CURL_ERROR_SIZE];
|
||||
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, cerror);
|
||||
|
||||
if(g_settings.softupdate_proxyserver != "") {
|
||||
curl_easy_setopt(curl, CURLOPT_PROXY, g_settings.softupdate_proxyserver.c_str());
|
||||
if(g_settings.softupdate_proxyusername != "") {
|
||||
std::string tmp = g_settings.softupdate_proxyusername + ":" + g_settings.softupdate_proxypassword;
|
||||
curl_easy_setopt(curl, CURLOPT_PROXYUSERPWD, tmp.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
CURLcode res = curl_easy_perform(curl);
|
||||
curl_easy_cleanup(curl);
|
||||
|
||||
|
Reference in New Issue
Block a user