Enable WebRTC-BindUsingInterfaceName by default
But keep option to disable it. The fix has been tested using A/B experiment with Duo with positive results. Bug: webrtc:10707 Change-Id: Iaac72430bc52026ab5db9dd042c5fdc3832fdce5 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/217380 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org> Commit-Queue: Jonas Oreland <jonaso@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33941}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
256d631e2a
commit
b5274ef8b9
@ -487,7 +487,7 @@ BasicNetworkManager::BasicNetworkManager(
|
||||
allow_mac_based_ipv6_(
|
||||
webrtc::field_trial::IsEnabled("WebRTC-AllowMACBasedIPv6")),
|
||||
bind_using_ifname_(
|
||||
webrtc::field_trial::IsEnabled("WebRTC-BindUsingInterfaceName")) {}
|
||||
!webrtc::field_trial::IsDisabled("WebRTC-BindUsingInterfaceName")) {}
|
||||
|
||||
BasicNetworkManager::~BasicNetworkManager() {}
|
||||
|
||||
|
||||
@ -1307,9 +1307,6 @@ TEST_F(NetworkTest, WebRTC_AllowMACBasedIPv6Address) {
|
||||
|
||||
#if defined(WEBRTC_POSIX)
|
||||
TEST_F(NetworkTest, WebRTC_BindUsingInterfaceName) {
|
||||
webrtc::test::ScopedFieldTrials field_trials(
|
||||
"WebRTC-BindUsingInterfaceName/Enabled/");
|
||||
|
||||
char if_name1[20] = "wlan0";
|
||||
char if_name2[20] = "v4-wlan0";
|
||||
ifaddrs* list = nullptr;
|
||||
|
||||
@ -127,7 +127,6 @@ TEST_F(AndroidNetworkMonitorTest,
|
||||
}
|
||||
|
||||
TEST_F(AndroidNetworkMonitorTest, TestFindNetworkHandleUsingIfName) {
|
||||
ScopedFieldTrials field_trials("WebRTC-BindUsingInterfaceName/Enabled/");
|
||||
// Start() updates the states introduced by the field trial.
|
||||
network_monitor_->Start();
|
||||
jni::NetworkHandle ipv6_handle = 200;
|
||||
|
||||
@ -247,7 +247,7 @@ void AndroidNetworkMonitor::Start() {
|
||||
webrtc::field_trial::IsEnabled(
|
||||
"WebRTC-FindNetworkHandleWithoutIpv6TemporaryPart");
|
||||
bind_using_ifname_ =
|
||||
webrtc::field_trial::IsEnabled("WebRTC-BindUsingInterfaceName");
|
||||
!webrtc::field_trial::IsDisabled("WebRTC-BindUsingInterfaceName");
|
||||
|
||||
// This pointer is also accessed by the methods called from java threads.
|
||||
// Assigning it here is safe, because the java monitor is in a stopped state,
|
||||
|
||||
Reference in New Issue
Block a user