Index: webrtc/p2p/client/basicportallocator.cc |
diff --git a/webrtc/p2p/client/basicportallocator.cc b/webrtc/p2p/client/basicportallocator.cc |
index 49ab142d469bdfb5aed1b12384dd8398be0ca05e..d76ff565a654e9e8acdc68e8594997e32cb99b0c 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 Wi-Fi networks unless the flag's been set. |
+ continue; |
+ } |
+ |
// Disable phases that would only create ports equivalent to |
// ones that we have already made. |
DisableEquivalentPhases(networks[i], config, &sequence_flags); |