Allow IPv6 connections on watchOS.
This commit is contained in:
parent
ee8e2b1481
commit
509dd95882
@ -93,7 +93,12 @@ vector<DcOptionsSet::ConnectionInfo> DcOptionsSet::find_all_connections(DcId dc_
|
||||
}
|
||||
|
||||
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.stat = &option_stat->http_stat;
|
||||
options.push_back(info);
|
||||
|
Loading…
Reference in New Issue
Block a user