Closed vincentneo closed 1 year ago
TDLib uses HTTP only on watchOS, where socket API isn't available.
The port number can be 80, 443, or something else. IP addresses are received from the server, but you can add to the exemption list at least all built-in addresses: https://github.com/tdlib/td/blob/758ced943e44019b25852c365655da6f1fe6d24a/td/telegram/net/ConnectionCreator.cpp#L1240-L1260
Thank you @levlam for the quick and informative reply!
Does tdlib make any calls via HTTP?
I was wondering if I should add any domains to the App Transport Security (ATS)'s exemption list, since I'm seeing console messages like:
A quick search online shows the IP address is used by Telegram, and very clearly using port 80 with http. Pretty sure it got blocked by the lack of ATS setting.
Functionality wise, was able to authenticate and get chat list so far, though I'm just exploring the API around, not entirely sure if anything other than those 2 functions are broken or not, so I'm unsure of the impact.