From 0ce6a4cbdb1e01d0a783881153f77e76e5ed2784 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 5 Apr 2024 20:48:06 +0400 Subject: [PATCH] Beta version 4.16.3: Re-enable system proxy (Linux). This reverts commit 1e6fb202f0b2964b44719ce671dd90d2cb4889dd. --- Telegram/SourceFiles/core/sandbox.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Telegram/SourceFiles/core/sandbox.cpp b/Telegram/SourceFiles/core/sandbox.cpp index fb145f7f1..6feacdb5b 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);