mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-05 19:28:46 +02:00
MTDNS should not use Google DOH
https://github.com/TelegramMessenger/Telegram-iOS/issues/679
This commit is contained in:
parent
7d335e817a
commit
17fd6118e1
1 changed files with 2 additions and 2 deletions
|
|
@ -824,7 +824,7 @@ struct ctr_state {
|
|||
|
||||
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 @@ struct ctr_state {
|
|||
|
||||
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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue