Merge changes from topics "nonAutoIPSelection", "preferredIpProtocol" am: ec59bee3db am: a7083f38d2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2483095 Change-Id: Ieeccf8c21357d2f16a00cf183b0a69f78b917f6e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3558,10 +3558,22 @@ public class Vpn {
|
|||||||
+ mCurrentToken
|
+ mCurrentToken
|
||||||
+ " to network "
|
+ " to network "
|
||||||
+ underlyingNetwork);
|
+ underlyingNetwork);
|
||||||
final int ipVersion = mProfile.isAutomaticIpVersionSelectionEnabled()
|
|
||||||
? guessEspIpVersionForNetwork() : ESP_IP_VERSION_AUTO;
|
final int ipVersion;
|
||||||
final int encapType = mProfile.isAutomaticIpVersionSelectionEnabled()
|
final int encapType;
|
||||||
? guessEspEncapTypeForNetwork() : ESP_ENCAP_TYPE_AUTO;
|
if (mProfile.isAutomaticIpVersionSelectionEnabled()) {
|
||||||
|
ipVersion = guessEspIpVersionForNetwork();
|
||||||
|
encapType = guessEspEncapTypeForNetwork();
|
||||||
|
} else if (mProfile.getIkeTunnelConnectionParams() != null) {
|
||||||
|
ipVersion = mProfile.getIkeTunnelConnectionParams()
|
||||||
|
.getIkeSessionParams().getIpVersion();
|
||||||
|
encapType = mProfile.getIkeTunnelConnectionParams()
|
||||||
|
.getIkeSessionParams().getEncapType();
|
||||||
|
} else {
|
||||||
|
ipVersion = ESP_IP_VERSION_AUTO;
|
||||||
|
encapType = ESP_ENCAP_TYPE_AUTO;
|
||||||
|
}
|
||||||
|
|
||||||
final int keepaliveDelaySeconds;
|
final int keepaliveDelaySeconds;
|
||||||
if (mProfile.isAutomaticNattKeepaliveTimerEnabled()) {
|
if (mProfile.isAutomaticNattKeepaliveTimerEnabled()) {
|
||||||
keepaliveDelaySeconds = guessNattKeepaliveTimerForNetwork();
|
keepaliveDelaySeconds = guessNattKeepaliveTimerForNetwork();
|
||||||
|
|||||||
Reference in New Issue
Block a user