-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fix incorrect proxy request address type for IPv6 #735
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ne
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has been a year since I submitted this Pull Request. The issue is quite severe, yet it only requires 10 lines of code to fix it. Additionally, two reviewers have already confirmed the code. I must say, your approach towards contributions from the open-source community leaves much to be desired. |
/cc @laktyushin |
@laktyushin when can you merge this? |
I discovered years ago that both the iOS and Mac versions of Telegram send requests to the proxy server for invalid IP , and I created this issue in the TelegramSwift repo about two years ago but got no response. overtake/TelegramSwift#427
So I decided to look into it myself, and I found that MtProtoKit doesn't handle IPv6 addresses correctly at all, so when the upper-level code tries to connect to an IPv6 address via a proxy, it sends a request to an invalid IPv4 address.
This issue has been bugging me for years. Please merge this PR or fix the issue in some other way as soon as possible, thanks.