mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
- Removed useless check in proxy code
This commit is contained in:
@@ -1040,7 +1040,6 @@ void GUI::configureSession(bool deleteOptions) {
|
|||||||
default:
|
default:
|
||||||
proxy_str = misc::toQString("http://")+options->getProxyIp()+":"+misc::toQString(proxySettings.port);
|
proxy_str = misc::toQString("http://")+options->getProxyIp()+":"+misc::toQString(proxySettings.port);
|
||||||
}
|
}
|
||||||
if(!proxy_str.isEmpty()) {
|
|
||||||
// We need this for urllib in search engine plugins
|
// We need this for urllib in search engine plugins
|
||||||
#ifdef Q_WS_WIN
|
#ifdef Q_WS_WIN
|
||||||
char proxystr[512];
|
char proxystr[512];
|
||||||
@@ -1049,7 +1048,6 @@ void GUI::configureSession(bool deleteOptions) {
|
|||||||
#else
|
#else
|
||||||
setenv("http_proxy", proxy_str.toUtf8().data(), 1);
|
setenv("http_proxy", proxy_str.toUtf8().data(), 1);
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
#ifdef Q_WS_WIN
|
#ifdef Q_WS_WIN
|
||||||
putenv("http_proxy=");
|
putenv("http_proxy=");
|
||||||
|
|||||||
Reference in New Issue
Block a user