Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported proxy link in tgx #2861

Closed
sepehrbrj opened this issue Apr 25, 2024 · 6 comments
Closed

Unsupported proxy link in tgx #2861

sepehrbrj opened this issue Apr 25, 2024 · 6 comments

Comments

@sepehrbrj
Copy link

20240425_134009.jpg

https://t.me/mehduox_vpn/1700
https://t.me/PewezaVPN/12425

@levlam
Copy link
Contributor

levlam commented Apr 25, 2024

The links are invalid, which can be seen by presence of a lot "A" characters at the end, or "=", or "%" character that must never be used in a valid proxy link secret. You need to find other source of proxy that will not post random garbage.

@sepehrbrj
Copy link
Author

The links are invalid, which can be seen by presence of a lot "A" characters at the end, or "=", or "%" character that must never be used in a valid proxy link secret. You need to find other source of proxy that will not post random garbage.

They work fine in official version of telegram

@levlam
Copy link
Contributor

levlam commented Apr 25, 2024

Then this is also a bug of the Android app which incorrectly parse the secret and uses it in some unexpected way.

@levlam
Copy link
Contributor

levlam commented Apr 25, 2024

Likely, you can truncate the secret to 16 bytes to make the link work in Telegram X, but this doesn't make the initial link correct.

@sepehrbrj
Copy link
Author

Likely, you can truncate the secret to 16 bytes to make the link work in Telegram X, but this doesn't make the initial link correct.

How can I shorten the link to 16 bytes?

@levlam
Copy link
Contributor

levlam commented Apr 25, 2024

Decode secret part of the link to a binary with base64_decode, then truncate it to 16 bytes, then encode it with base64url_decode. You can do that manually, for example, using https://cryptii.com/pipes/base64-to-hex. The resulting link will be accepted, but given that initial links are invalid there is no any guarantee that resulting link will work.

@levlam levlam closed this as completed Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants