Merge "Change default IP protocol preference from AUTO to IPV4" into udc-dev am: 4ca1887dd7 am: f16d2249fe
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23157990 Change-Id: Ifaed432f70aee9aa5c55f57bf2722419e014ab85 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3677,8 +3677,11 @@ public class Vpn {
|
|||||||
encapType = IkeSessionParams.ESP_ENCAP_TYPE_NONE;
|
encapType = IkeSessionParams.ESP_ENCAP_TYPE_NONE;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ipVersion = IkeSessionParams.ESP_IP_VERSION_AUTO;
|
// By default, PREFERRED_IKE_PROTOCOL_IPV4_UDP is used for safety. This is
|
||||||
encapType = IkeSessionParams.ESP_ENCAP_TYPE_AUTO;
|
// because some carriers' networks do not support IPv6 very well, and using
|
||||||
|
// IPv4 can help to prevent problems.
|
||||||
|
ipVersion = IkeSessionParams.ESP_IP_VERSION_IPV4;
|
||||||
|
encapType = IkeSessionParams.ESP_ENCAP_TYPE_UDP;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return new CarrierConfigInfo(mccMnc, natKeepalive, encapType, ipVersion);
|
return new CarrierConfigInfo(mccMnc, natKeepalive, encapType, ipVersion);
|
||||||
|
|||||||
Reference in New Issue
Block a user