Merge changes from topics "nonAutoIPSelection", "preferredIpProtocol" am: ec59bee3db am: a7083f38d2 am: 084f3b83eb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2483095 Change-Id: Ibd2c4bd336ca50c4310b5139cf1a63b7268413e0 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
|
||||
+ " to network "
|
||||
+ underlyingNetwork);
|
||||
final int ipVersion = mProfile.isAutomaticIpVersionSelectionEnabled()
|
||||
? guessEspIpVersionForNetwork() : ESP_IP_VERSION_AUTO;
|
||||
final int encapType = mProfile.isAutomaticIpVersionSelectionEnabled()
|
||||
? guessEspEncapTypeForNetwork() : ESP_ENCAP_TYPE_AUTO;
|
||||
|
||||
final int ipVersion;
|
||||
final int encapType;
|
||||
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;
|
||||
if (mProfile.isAutomaticNattKeepaliveTimerEnabled()) {
|
||||
keepaliveDelaySeconds = guessNattKeepaliveTimerForNetwork();
|
||||
|
||||
Reference in New Issue
Block a user