diff --git a/mythtv/programs/mythfrontend/main.cpp b/mythtv/programs/mythfrontend/main.cpp
index 88c7551..5fb471f 100644
a
|
b
|
using namespace std; |
18 | 18 | #include <QWidget> |
19 | 19 | #include <QApplication> |
20 | 20 | #include <QTimer> |
| 21 | #include <QNetworkProxy> |
21 | 22 | |
22 | 23 | #include "previewgeneratorqueue.h" |
23 | 24 | #include "mythconfig.h" |
… |
… |
int main(int argc, char **argv) |
1279 | 1280 | |
1280 | 1281 | gCoreContext->SetAppName(binname); |
1281 | 1282 | |
| 1283 | |
| 1284 | // Set http proxy for the application if specified in environment variable |
| 1285 | QString var(getenv("http_proxy")); |
| 1286 | QRegExp regex("(http://)?(.*):(\\d*)/?"); |
| 1287 | int pos = regex.indexIn(var); |
| 1288 | if (pos > -1) { |
| 1289 | QString host = regex.cap(2); |
| 1290 | int port = regex.cap(3).toInt(); |
| 1291 | QNetworkProxy proxy(QNetworkProxy::HttpProxy, host, port); |
| 1292 | QNetworkProxy::setApplicationProxy(proxy); |
| 1293 | } |
| 1294 | |
1282 | 1295 | for(int argpos = 1; argpos < a.argc(); ++argpos) |
1283 | 1296 | { |
1284 | 1297 | if (!strcmp(a.argv()[argpos],"-l") || |