Fix issue where sockets bound to temporary IPv6 addresses are discarded.
Also removing the implicit InterfaceAddress constructor that takes an IPAddress, so that issues like this won't happen in the future. And adding a convenience "Network::AddIP" method that takes an IPAddress, so that code doing that (previously relying on the implicit constructor) will continue to work. Bug: webrtc:8972 Change-Id: Id5cf0fca481cfee3f8ab83412fcb41886535bba2 Reviewed-on: https://webrtc-review.googlesource.com/59461 Reviewed-by: Peter Thatcher <pthatcher@webrtc.org> Commit-Queue: Taylor Brandstetter <deadbeef@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22504}
This commit is contained in:
committed by
Commit Bot
parent
3d976f6066
commit
01cb5f2cee
@ -633,7 +633,7 @@ bool BasicNetworkManager::CreateNetworks(bool include_ignored,
|
||||
scope_id = v6_addr->sin6_scope_id;
|
||||
ip = IPAddress(v6_addr->sin6_addr);
|
||||
|
||||
if (IsIgnoredIPv6(ip)) {
|
||||
if (IsIgnoredIPv6(InterfaceAddress(ip))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user