Index: webrtc/pc/peerconnection.cc |
diff --git a/webrtc/pc/peerconnection.cc b/webrtc/pc/peerconnection.cc |
index c3ec0b2aad903839cc4e03340254903299d9524a..48ffebe222d1c6482d81e27d244ee6f4e79dbc25 100644 |
--- a/webrtc/pc/peerconnection.cc |
+++ b/webrtc/pc/peerconnection.cc |
@@ -2510,8 +2510,8 @@ bool PeerConnection::InitializePortAllocator_n( |
// by experiment. |
if (configuration.disable_ipv6) { |
portallocator_flags &= ~(cricket::PORTALLOCATOR_ENABLE_IPV6); |
- } else if (webrtc::field_trial::FindFullName("WebRTC-IPv6Default") == |
- "Disabled") { |
+ } else if (webrtc::field_trial::FindFullName("WebRTC-IPv6Default") |
+ .find("Disabled") == 0) { |
portallocator_flags &= ~(cricket::PORTALLOCATOR_ENABLE_IPV6); |
} |