mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +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:
@@ -709,6 +709,16 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
g_settings.softupdate_proxyusername = configfile.getString("softupdate_proxyusername", "" );
|
||||
g_settings.softupdate_proxypassword = configfile.getString("softupdate_proxypassword", "" );
|
||||
//
|
||||
if (g_settings.softupdate_proxyserver == "")
|
||||
unsetenv("http_proxy");
|
||||
else {
|
||||
std::string proxy = "http://";
|
||||
if (g_settings.softupdate_proxyusername != "")
|
||||
proxy += g_settings.softupdate_proxyusername + ":" + g_settings.softupdate_proxypassword + "@";
|
||||
proxy += g_settings.softupdate_proxyserver;
|
||||
setenv("http_proxy", proxy.c_str(), 1);
|
||||
}
|
||||
|
||||
g_settings.font_file = configfile.getString("font_file", FONTDIR"/neutrino.ttf");
|
||||
g_settings.ttx_font_file = configfile.getString( "ttx_font_file", FONTDIR"/DejaVuLGCSansMono-Bold.ttf");
|
||||
ttx_font_file = g_settings.ttx_font_file.c_str();
|
||||
|
Reference in New Issue
Block a user