From 9412ced72222e2ccb1736b45932b36260363e695 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 3 Jan 2009 22:24:56 +0000 Subject: [PATCH] - Important HTTP proxy fix --- src/GUI.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index c96724856..4533ae4fb 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -1028,6 +1028,10 @@ void GUI::configureSession(bool deleteOptions) { proxySettings.type = proxy_settings::socks5_pw; break; } + BTSession->setProxySettings(proxySettings, options->useProxyForTrackers(), options->useProxyForPeers(), options->useProxyForWebseeds(), options->useProxyForDHT()); +} + if(options->isHTTPProxyEnabled()) { + // HTTP Proxy QString proxy_str; switch(options->getHTTPProxyType()) { case HTTP_PW: @@ -1053,7 +1057,7 @@ void GUI::configureSession(bool deleteOptions) { unsetenv("http_proxy"); #endif } - BTSession->setProxySettings(proxySettings, options->useProxyForTrackers(), options->useProxyForPeers(), options->useProxyForWebseeds(), options->useProxyForDHT()); + // * Session settings session_settings sessionSettings; if(options->shouldSpoofAzureus()) {