1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-02 09:55:55 +00:00

- Important HTTP proxy fix

This commit is contained in:
Christophe Dumez 2009-01-03 22:24:56 +00:00
parent 7037b53ff8
commit 9412ced722

View File

@ -1028,6 +1028,10 @@ void GUI::configureSession(bool deleteOptions) {
proxySettings.type = proxy_settings::socks5_pw; proxySettings.type = proxy_settings::socks5_pw;
break; break;
} }
BTSession->setProxySettings(proxySettings, options->useProxyForTrackers(), options->useProxyForPeers(), options->useProxyForWebseeds(), options->useProxyForDHT());
}
if(options->isHTTPProxyEnabled()) {
// HTTP Proxy
QString proxy_str; QString proxy_str;
switch(options->getHTTPProxyType()) { switch(options->getHTTPProxyType()) {
case HTTP_PW: case HTTP_PW:
@ -1053,7 +1057,7 @@ void GUI::configureSession(bool deleteOptions) {
unsetenv("http_proxy"); unsetenv("http_proxy");
#endif #endif
} }
BTSession->setProxySettings(proxySettings, options->useProxyForTrackers(), options->useProxyForPeers(), options->useProxyForWebseeds(), options->useProxyForDHT());
// * Session settings // * Session settings
session_settings sessionSettings; session_settings sessionSettings;
if(options->shouldSpoofAzureus()) { if(options->shouldSpoofAzureus()) {