mtg icon indicating copy to clipboard operation
mtg copied to clipboard

Petition to enable legacy mode in V2

Open christaikobo opened this issue 3 years ago • 7 comments

Dear dev,

I think there is a user case for legacy mode, if one's configuration looks like this:

client--------mtg-------other proxy like shadowsocks-------shadowsocks server------telegram server
                                                       |
                                                       |
                                                   censorship

In this case, there is no censorship between telegram client and mtg. And faketls, in my experience, seems to be more resource consuming, at least it takes around 15 seconds to connect each time I open telegram client.

christaikobo avatar Sep 08 '22 03:09 christaikobo

FakeTLS is almost free because it does not do any encryption per se. Actually, this is literally the same traffic as in "legacy mode" (pure telegram traffic) but arranged in TLS records (I mean, literally, 1 byte of header, length of the message and message without any encryption).

What makes you think that FakeTLS is a reason?

9seconds avatar Sep 08 '22 09:09 9seconds

When I open telegram, there is a "connecting" notification on top,

in legacy mode, it goes away quickly, shows "connected" and I am able to send and receive messages. in FakeTLS mode, it takes 15-30 seconds before "connected" shows up.

christaikobo avatar Sep 08 '22 10:09 christaikobo

Update: it seems to be related to time skew.

The default 5s setting will cause telegram to failed to connect, about 50% of the time(estimation) Anything between 10s to 120s will cause telegram to stuck at "connecting" for 15-30 seconds, but connection will be successful. Setting it to 300s, telegram can connect instantaneously.

christaikobo avatar Sep 11 '22 12:09 christaikobo

Seems so. I'm not really sure how to communicate this timing problem to a user because usually mtg works in fire-and-forget mode. I have bugs of such nature from time to time https://github.com/9seconds/mtg/issues/284

9seconds avatar Sep 12 '22 16:09 9seconds

When I open telegram, there is a "connecting" notification on top,

in legacy mode, it goes away quickly, shows "connected" and I am able to send and receive messages. in FakeTLS mode, it takes 15-30 seconds before "connected" shows up.

如果在不过🧱的情况下,推荐使用 socks5 取代,能得到更好的体验效果。

v03413 avatar Sep 14 '22 02:09 v03413

When I open telegram, there is a "connecting" notification on top, in legacy mode, it goes away quickly, shows "connected" and I am able to send and receive messages. in FakeTLS mode, it takes 15-30 seconds before "connected" shows up.

如果在不过🧱的情况下,推荐使用 socks5 取代,能得到更好的体验效果。

Exposing a socks5 proxy is just unnecessary security risk. Better experience is not only about easy to setup and use.

christaikobo avatar Sep 14 '22 05:09 christaikobo

When I open telegram, there is a "connecting" notification on top, in legacy mode, it goes away quickly, shows "connected" and I am able to send and receive messages. in FakeTLS mode, it takes 15-30 seconds before "connected" shows up.

如果在不过🧱的情况下,推荐使用 socks5 取代,能得到更好的体验效果。

Exposing a socks5 proxy is just unnecessary security risk. Better experience is not only about easy to setup and use.

的确是这样,但目前除了官方C语言版本,都或多或少存在一些问题,比较难搞。

v03413 avatar Sep 14 '22 06:09 v03413