| Index: content/renderer/p2p/ipc_network_manager.cc
|
| diff --git a/content/renderer/p2p/ipc_network_manager.cc b/content/renderer/p2p/ipc_network_manager.cc
|
| index ac7661209b516e1106ea249b8c002ffeb83ddfbf..ad62327b19612e3aa34060fcec540ef25eb8beb1 100644
|
| --- a/content/renderer/p2p/ipc_network_manager.cc
|
| +++ b/content/renderer/p2p/ipc_network_manager.cc
|
| @@ -88,6 +88,14 @@ void IpcNetworkManager::OnNetworkListChanged(
|
| network->AddIP(rtc::IPAddress(address));
|
| networks.push_back(network);
|
| } else if (it->address.size() == net::kIPv6AddressSize) {
|
| +
|
| + // Only allow temporary non-deprecated address to ensure the MAC is not
|
| + // included in the address.
|
| + if (!(it->ip_address_attributes & net::IP_ADDRESS_ATTRIBUTE_TEMPORARY) ||
|
| + (it->ip_address_attributes & net::IP_ADDRESS_ATTRIBUTE_DEPRECATED)) {
|
| + continue;
|
| + }
|
| +
|
| in6_addr address;
|
| memcpy(&address, &it->address[0], sizeof(in6_addr));
|
| rtc::IPAddress ip6_addr(address);
|
|
|