Chromium Code Reviews| Index: webrtc/p2p/client/basicportallocator.cc |
| diff --git a/webrtc/p2p/client/basicportallocator.cc b/webrtc/p2p/client/basicportallocator.cc |
| index 49ab142d469bdfb5aed1b12384dd8398be0ca05e..6b41c343aa0abb27318ff0f6db5793b11edd0ac8 100644 |
| --- a/webrtc/p2p/client/basicportallocator.cc |
| +++ b/webrtc/p2p/client/basicportallocator.cc |
| @@ -610,6 +610,13 @@ void BasicPortAllocatorSession::DoAllocate() { |
| continue; |
| } |
| + if (!(sequence_flags & PORTALLOCATOR_ENABLE_IPV6_ON_WIFI) && |
| + networks[i]->GetBestIP().family() == AF_INET6 && |
| + networks[i]->type() == rtc::ADAPTER_TYPE_WIFI) { |
| + // Skip IPv6 networks unless the flag's been set. |
|
Taylor Brandstetter
2017/03/05 23:45:30
nit: "Skip IPv6 WiFi networks"
Zhi Huang
2017/03/06 21:14:19
Done.
|
| + continue; |
| + } |
| + |
| // Disable phases that would only create ports equivalent to |
| // ones that we have already made. |
| DisableEquivalentPhases(networks[i], config, &sequence_flags); |