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

Commit 421fab8a authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Avoid legacy VPN bringing down system server.

Bug: 9564691
Change-Id: I5b5f78c9ae20505f6274b91bc8fdbaaf57443277
parent 4db614db
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -148,8 +148,13 @@ public class LockdownVpnTracker {
                showNotification(R.string.vpn_lockdown_connecting, R.drawable.vpn_disconnected);

                mAcceptedEgressIface = egressProp.getInterfaceName();
                try {
                    mVpn.startLegacyVpn(mProfile, KeyStore.getInstance(), egressProp);

                } catch (IllegalStateException e) {
                    mAcceptedEgressIface = null;
                    Slog.e(TAG, "Failed to start VPN", e);
                    showNotification(R.string.vpn_lockdown_error, R.drawable.vpn_disconnected);
                }
            } else {
                Slog.e(TAG, "Invalid VPN profile; requires IP-based server and DNS");
                showNotification(R.string.vpn_lockdown_error, R.drawable.vpn_disconnected);