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
@ -346,6 +346,7 @@ class Network {
|
||||
|
||||
// Adds an active IP address to this network. Does not check for duplicates.
|
||||
void AddIP(const InterfaceAddress& ip) { ips_.push_back(ip); }
|
||||
void AddIP(const IPAddress& ip) { ips_.push_back(rtc::InterfaceAddress(ip)); }
|
||||
|
||||
// Sets the network's IP address list. Returns true if new IP addresses were
|
||||
// detected. Passing true to already_changed skips this check.
|
||||
|
||||
Reference in New Issue
Block a user