From e0431d270b2e42341389766e7ae2f417ee72031e Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 5 May 2018 15:14:17 +0300 Subject: [PATCH] Allow cdn requests through mtproto proxy. --- Telegram/SourceFiles/mtproto/connection.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/mtproto/connection.cpp b/Telegram/SourceFiles/mtproto/connection.cpp index abf263f201..0de6cd8f81 100644 --- a/Telegram/SourceFiles/mtproto/connection.cpp +++ b/Telegram/SourceFiles/mtproto/connection.cpp @@ -1082,8 +1082,7 @@ void ConnectionPrivate::connectToServer(bool afterConfig) { } destroyAllConnections(); - if (_connectionOptions->proxy.type == ProxyData::Type::Mtproto - && _dcType != DcType::Cdn) { + if (_connectionOptions->proxy.type == ProxyData::Type::Mtproto) { appendTestConnection( DcOptions::Variants::Tcp, _connectionOptions->proxy.host,