| Index: webrtc/api/peerconnection.cc
|
| diff --git a/webrtc/api/peerconnection.cc b/webrtc/api/peerconnection.cc
|
| index 5a0d32a5ff8e67416c1d3f3abbe9127f5e97739a..d5cbd5ea8770248fcb7ed79532b01b39df9ce785 100644
|
| --- a/webrtc/api/peerconnection.cc
|
| +++ b/webrtc/api/peerconnection.cc
|
| @@ -2128,6 +2128,12 @@ bool PeerConnection::InitializePortAllocator_n(
|
| LOG(LS_INFO) << "TCP candidates are disabled.";
|
| }
|
|
|
| + if (configuration.candidate_network_policy ==
|
| + kCandidateNetworkPolicyLowCost) {
|
| + portallocator_flags |= cricket::PORTALLOCATOR_DISABLE_COSTLY_NETWORKS;
|
| + LOG(LS_INFO) << "Do not gather candidates on high-cost networks";
|
| + }
|
| +
|
| port_allocator_->set_flags(portallocator_flags);
|
| // No step delay is used while allocating ports.
|
| port_allocator_->set_step_delay(cricket::kMinimumStepDelay);
|
|
|