Allow IPv6 connections on watchOS.

This commit is contained in:
levlam 2023-06-16 13:24:21 +03:00
parent ee8e2b1481
commit 509dd95882

View File

@ -93,7 +93,12 @@ vector<DcOptionsSet::ConnectionInfo> DcOptionsSet::find_all_connections(DcId dc_
} }
if (only_http) { if (only_http) {
if (!option.is_obfuscated_tcp_only() && !option.is_static() && (prefer_ipv6 || !option.is_ipv6())) { #if TD_DARWIN_WATCH_OS
bool allow_ipv6 = true;
#else
bool allow_ipv6 = prefer_ipv6;
#endif
if (!option.is_obfuscated_tcp_only() && !option.is_static() && (allow_ipv6 || !option.is_ipv6())) {
info.use_http = true; info.use_http = true;
info.stat = &option_stat->http_stat; info.stat = &option_stat->http_stat;
options.push_back(info); options.push_back(info);