Merge "Allow excludeLocalRoutes set only in bypassable profile" am: eaa3fc76a8 am: e6c1b94120 am: 9d00b2224a am: 3c0d514eab
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1938237 Change-Id: I501199d6a3095aceefd7ea9e31e96af3d651efb4
This commit is contained in:
@@ -163,6 +163,10 @@ public final class Ikev2VpnProfile extends PlatformVpnProfile {
|
||||
|
||||
// UnmodifiableList doesn't make a defensive copy by default.
|
||||
mAllowedAlgorithms = Collections.unmodifiableList(new ArrayList<>(allowedAlgorithms));
|
||||
if (excludeLocalRoutes && !isBypassable) {
|
||||
throw new IllegalArgumentException(
|
||||
"Vpn should be byassable if excludeLocalRoutes is set");
|
||||
}
|
||||
|
||||
mIsBypassable = isBypassable;
|
||||
mIsMetered = isMetered;
|
||||
|
||||
Reference in New Issue
Block a user