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

Commit 9d00b222 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 am: e6c1b941

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

Change-Id: I14f0fe8795aa6f90c13bf764db45ce5e234268ff
parents f73012a4 e6c1b941
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;