2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Support work with different dcs on a single IP.

This commit is contained in:
John Preston
2018-04-24 12:46:27 +04:00
parent 909acb25fd
commit 7482025c10
16 changed files with 391 additions and 97 deletions

View File

@@ -322,7 +322,8 @@ void Application::refreshGlobalProxy() {
}
return Sandbox::PreLaunchProxy();
}();
if (proxy.type != ProxyData::Type::None) {
if (proxy.type == ProxyData::Type::Socks5
|| proxy.type == ProxyData::Type::Http) {
QNetworkProxy::setApplicationProxy(QNetworkProxy(
(proxy.type == ProxyData::Type::Socks5
? QNetworkProxy::Socks5Proxy