Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bac69433 authored by Chiachang Wang's avatar Chiachang Wang Committed by Automerger Merge Worker
Browse files

Merge "Allow excludeLocalRoutes set only in bypassable profile" am: eaa3fc76...

Merge "Allow excludeLocalRoutes set only in bypassable profile" am: eaa3fc76 am: e6c1b941 am: 9d00b222 am: 3c0d514e

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1938237

Change-Id: I501199d6a3095aceefd7ea9e31e96af3d651efb4
parents 24d3b877 3c0d514e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;