diff --git a/Telegram/SourceFiles/core/sandbox.cpp b/Telegram/SourceFiles/core/sandbox.cpp index fb145f7f15..6feacdb5bd 100644 --- a/Telegram/SourceFiles/core/sandbox.cpp +++ b/Telegram/SourceFiles/core/sandbox.cpp @@ -33,7 +33,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include #include #include -#include namespace Core { namespace { @@ -518,10 +517,8 @@ void Sandbox::refreshGlobalProxy() { || proxy.type == MTP::ProxyData::Type::Http) { QNetworkProxy::setApplicationProxy( MTP::ToNetworkProxy(MTP::ToDirectIpProxy(proxy))); - } else if ((!Core::IsAppLaunched() - || Core::App().settings().proxy().isSystem()) - // this works stable only in sandboxed environment where it works through portal - && (!Platform::IsLinux() || KSandbox::isInside() || cDebugMode())) { + } else if (!Core::IsAppLaunched() + || Core::App().settings().proxy().isSystem()) { QNetworkProxyFactory::setUseSystemConfiguration(true); } else { QNetworkProxy::setApplicationProxy(QNetworkProxy::NoProxy); diff --git a/cmake b/cmake index 89c843ff6a..c82faf706f 160000 --- a/cmake +++ b/cmake @@ -1 +1 @@ -Subproject commit 89c843ff6a007e08550c3d603d314a4edaae1732 +Subproject commit c82faf706fd10618ad5f97a7972fb09c56843271