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

Commit d4235a81 authored by Lucas Lin's avatar Lucas Lin Committed by Gerrit Code Review
Browse files

Merge "Define and use default request in Ikev2VpnRunner"

parents f01b37a7 3d4941b9
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -2407,7 +2407,14 @@ public class Vpn {
                        .addTransportType(NetworkCapabilities.TRANSPORT_TEST)
                        .build();
            } else {
                req = cm.getDefaultRequest();
                // Basically, the request here is referring to the default request which is defined
                // in ConnectivityService. Ideally, ConnectivityManager should provide an new API
                // which can provide the status of physical network even though there is a virtual
                // network. b/147280869 is used for tracking the new API.
                // TODO: Use the new API to register default physical network.
                req = new NetworkRequest.Builder()
                        .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)
                        .build();
            }

            cm.requestNetwork(req, mNetworkCallback);