Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Perfer IPv6 over IPv4 for connection test
It is almost 2024 and there is no reason to perfer IPv4 over IPv6, especially in tdesktop user still need to toggle a switch to enable IPv6. For tdesktop's connect test, if user does not have a routable IPv6 address, onDisconnect will be called promptly to fallback to another connection. If user's IPv6 connection is somehow filtering out connection to telegram's server, it will wait until kWaitForBetterTimeout and then fallback to another connection. This implementation is actually in spirit of happy eyeballs recommandation. Fixes: telegramdesktop#2198 Signed-off-by: Jiaxun Yang <[email protected]>
- Loading branch information