Telegram-iOS icon indicating copy to clipboard operation
Telegram-iOS copied to clipboard

MTDNS should not use Google DOH directly

Open antergone opened this issue 4 years ago • 7 comments

Checklist

  • [x] I am reporting an issue in existing functionality that does not work as intended
  • [x] I've searched for existing GitHub issues

Description

Why use Google DOH Server first and use DNS after timeout? If user can't use Google DOH normally, user have to wait for a timeout every time. I think DNS can be used directly, or the user can set not to use DOH

Some users have reported bugs before, but they haven't solved them. https://github.com/TelegramMessenger/Telegram-iOS/issues/221

https://github.com/TelegramMessenger/Telegram-iOS/blob/aa1b009cea6b9163dd025b36506704292ac0e814/submodules/MtProtoKit/Sources/MTTcpConnection.m#L819

https://github.com/TelegramMessenger/Telegram-iOS/blob/aa1b009cea6b9163dd025b36506704292ac0e814/submodules/MtProtoKit/Sources/MTDNS.m#L337

antergone avatar Dec 15 '21 13:12 antergone

https://github.com/TelegramMessenger/Telegram-iOS/issues/682

It seems to be the same thing to me.

In some areas, dns over https cannot be connected, and this is hard-coded and users cannot customize it.

f4nff avatar Dec 16 '21 09:12 f4nff

Looking forward to fix :(

poromony avatar Dec 21 '21 14:12 poromony

It is really a serious problem in China mainland. Please fix it :(

ichenhe avatar May 14 '22 07:05 ichenhe

What is the solution to this problem now? Is vpn only open 24 hours a day?

LevineWoo avatar Aug 23 '22 09:08 LevineWoo

TG 内置代理(socks5/tgp)直接填 ip 不要用域名就行了。

Use ip directly in Telegram built-in proxy settings l. 在 2022年8月23日+0800 17:43,əuıʌəl @.***>,写道:

请问这个问题现在有什么办法解决?只能24小时开着vpn了吗? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

ichenhe avatar Oct 11 '22 07:10 ichenhe

TG 内置代理(socks5/tgp)直接填 ip 不要用域名就行了。 Use ip directly in Telegram built-in proxy settings l. 在 2022年8月23日+0800 17:43,əuıʌəl @.>,写道: 请问这个问题现在有什么办法解决?只能24小时开着vpn了吗? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>

问题是家里的路由器拨号的,ip过两天就变化。。这种好像就不行了吧。。

LevineWoo avatar Oct 11 '22 07:10 LevineWoo

Implemented in my fork Swiftgram. Feel free to download from App Store or build from sources.

Kylmakalle avatar Jun 10 '24 21:06 Kylmakalle

Implemented in my fork Swiftgram. Feel free to download from App Store or build from sources.

Did the telegram iOS offical merged this feature? Otherwise I need to use this forked one

lixiao189 avatar Oct 31 '24 12:10 lixiao189