Chromium Code Reviews| 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..f689a75df72e6923c4319cbe3ec2282ca913ec83 100644 |
| --- a/content/renderer/p2p/ipc_network_manager.cc |
| +++ b/content/renderer/p2p/ipc_network_manager.cc |
| @@ -88,6 +88,13 @@ 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. crbug.com/413437 |
|
Sergey Ulanov
2015/03/08 16:35:27
I can't access this bug. Please remove this link.
|
| + if (!(it->ip_address_attributes & net::IP_ADDRESS_ATTRIBUTE_TEMPORARY) || |
| + (it->ip_address_attributes & net::IP_ADDRESS_ATTRIBUTE_DEPRECATED)) |
| + continue; |
|
Sergey Ulanov
2015/03/08 16:35:27
add {} please
|
| + |
| in6_addr address; |
| memcpy(&address, &it->address[0], sizeof(in6_addr)); |
| rtc::IPAddress ip6_addr(address); |