From bfdd4678c5b814fc3d13c87ac01ffa6d463704da Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Thu, 1 Dec 2022 08:47:41 +0800 Subject: [PATCH] MTDNS should not use Google DOH https://github.com/TelegramMessenger/Telegram-iOS/issues/679 --- submodules/MtProtoKit/Sources/MTTcpConnection.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/submodules/MtProtoKit/Sources/MTTcpConnection.m b/submodules/MtProtoKit/Sources/MTTcpConnection.m index 594f53330d5..a5cbfc3c0fb 100644 --- a/submodules/MtProtoKit/Sources/MTTcpConnection.m +++ b/submodules/MtProtoKit/Sources/MTTcpConnection.m @@ -824,7 +824,7 @@ - (void)start if (isHostname) { int32_t port = _socksPort; - resolveSignal = [[MTDNS resolveHostnameUniversal:_socksIp port:port] map:^id(NSString *resolvedIp) { + resolveSignal = [[MTDNS resolveHostnameNative:_socksIp port:port] map:^id(NSString *resolvedIp) { return [[MTTcpConnectionData alloc] initWithIp:resolvedIp port:port isSocks:true]; }]; } else { @@ -842,7 +842,7 @@ - (void)start if (isHostname) { int32_t port = _mtpPort; - resolveSignal = [[MTDNS resolveHostnameUniversal:_mtpIp port:port] map:^id(NSString *resolvedIp) { + resolveSignal = [[MTDNS resolveHostnameNative:_mtpIp port:port] map:^id(NSString *resolvedIp) { return [[MTTcpConnectionData alloc] initWithIp:resolvedIp port:port isSocks:false]; }]; } else {