mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Add flag to control sending address candidates in WifiLan upgrade message.
PiperOrigin-RevId: 831563192
This commit is contained in:
committed by
Copybara-Service
parent
4333bed749
commit
fcee77457f
@@ -765,10 +765,15 @@ std::vector<std::string> WifiLanMedium::GetUpgradeAddressCandidates(
|
||||
4));
|
||||
}
|
||||
}
|
||||
// Append v4 addresses to the end of the list.
|
||||
ip_addresses.insert(ip_addresses.end(), ipv4_addresses.begin(),
|
||||
ipv4_addresses.end());
|
||||
return ip_addresses;
|
||||
if (NearbyFlags::GetInstance().GetBoolFlag(
|
||||
platform::config_package_nearby::nearby_platform_feature::
|
||||
kEnableWifiLanAddressCandidates)) {
|
||||
// Append v4 addresses to the end of the list.
|
||||
ip_addresses.insert(ip_addresses.end(), ipv4_addresses.begin(),
|
||||
ipv4_addresses.end());
|
||||
return ip_addresses;
|
||||
}
|
||||
return { ip_addresses.back() };
|
||||
}
|
||||
|
||||
} // namespace nearby::windows
|
||||
|
||||
Reference in New Issue
Block a user