TelegramMessenger / Telegram-iOS

Telegram-iOS
5.56k stars 1.5k forks source link

MTDNS should not use Google DOH directly #679

Open antergone opened 2 years ago

antergone commented 2 years ago

Checklist

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

f4nff commented 2 years ago

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.

poromony commented 2 years ago

Looking forward to fix :(

ichenhe commented 2 years ago

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

LevineWoo commented 1 year ago

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

ichenhe commented 1 year ago

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: @.***>

LevineWoo commented 1 year ago

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过两天就变化。。这种好像就不行了吧。。

Kylmakalle commented 1 month ago

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