Remove the possibility to disable IPv6 in Java and ObjC.
It's deprecated and has been removed from Chrome. Let's follow suite. // Passing all but unrelated bots NOTRY=True Bug: webrtc:14608 Change-Id: I6f2601af5b1dc08164230ebf15db2d2f1754f9e5 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/280740 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38488}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
e6ec81a89c
commit
f36d607c4a
@ -97,11 +97,6 @@ RTC_OBJC_EXPORT
|
||||
@property(nonatomic, assign) RTCCandidateNetworkPolicy candidateNetworkPolicy;
|
||||
@property(nonatomic, assign) RTCContinualGatheringPolicy continualGatheringPolicy;
|
||||
|
||||
/** If set to YES, don't gather IPv6 ICE candidates.
|
||||
* Default is NO.
|
||||
*/
|
||||
@property(nonatomic, assign) BOOL disableIPV6;
|
||||
|
||||
/** If set to YES, don't gather IPv6 ICE candidates on Wi-Fi.
|
||||
* Only intended to be used on specific devices. Certain phones disable IPv6
|
||||
* when the screen is turned off and it would be better to just disable the
|
||||
|
||||
@ -32,7 +32,6 @@
|
||||
@synthesize tcpCandidatePolicy = _tcpCandidatePolicy;
|
||||
@synthesize candidateNetworkPolicy = _candidateNetworkPolicy;
|
||||
@synthesize continualGatheringPolicy = _continualGatheringPolicy;
|
||||
@synthesize disableIPV6 = _disableIPV6;
|
||||
@synthesize disableIPV6OnWiFi = _disableIPV6OnWiFi;
|
||||
@synthesize maxIPv6Networks = _maxIPv6Networks;
|
||||
@synthesize disableLinkLocalNetworks = _disableLinkLocalNetworks;
|
||||
@ -103,9 +102,7 @@
|
||||
candidateNetworkPolicyForNativePolicy:config.candidate_network_policy];
|
||||
webrtc::PeerConnectionInterface::ContinualGatheringPolicy nativePolicy =
|
||||
config.continual_gathering_policy;
|
||||
_continualGatheringPolicy =
|
||||
[[self class] continualGatheringPolicyForNativePolicy:nativePolicy];
|
||||
_disableIPV6 = config.disable_ipv6;
|
||||
_continualGatheringPolicy = [[self class] continualGatheringPolicyForNativePolicy:nativePolicy];
|
||||
_disableIPV6OnWiFi = config.disable_ipv6_on_wifi;
|
||||
_maxIPv6Networks = config.max_ipv6_networks;
|
||||
_disableLinkLocalNetworks = config.disable_link_local_networks;
|
||||
@ -190,7 +187,6 @@
|
||||
_shouldSurfaceIceCandidatesOnIceTransportTypeChanged,
|
||||
_iceCheckMinInterval,
|
||||
_disableLinkLocalNetworks,
|
||||
_disableIPV6,
|
||||
_disableIPV6OnWiFi,
|
||||
_maxIPv6Networks,
|
||||
_activeResetSrtpParams,
|
||||
@ -220,9 +216,8 @@
|
||||
[[self class] nativeTcpCandidatePolicyForPolicy:_tcpCandidatePolicy];
|
||||
nativeConfig->candidate_network_policy = [[self class]
|
||||
nativeCandidateNetworkPolicyForPolicy:_candidateNetworkPolicy];
|
||||
nativeConfig->continual_gathering_policy = [[self class]
|
||||
nativeContinualGatheringPolicyForPolicy:_continualGatheringPolicy];
|
||||
nativeConfig->disable_ipv6 = _disableIPV6;
|
||||
nativeConfig->continual_gathering_policy =
|
||||
[[self class] nativeContinualGatheringPolicyForPolicy:_continualGatheringPolicy];
|
||||
nativeConfig->disable_ipv6_on_wifi = _disableIPV6OnWiFi;
|
||||
nativeConfig->max_ipv6_networks = _maxIPv6Networks;
|
||||
nativeConfig->disable_link_local_networks = _disableLinkLocalNetworks;
|
||||
|
||||
Reference in New Issue
Block a user