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

Commit 3176e8be authored by Ken Chen's avatar Ken Chen Committed by Gerrit Code Review
Browse files

Merge "Remove 'hasDns' parameter"

parents 9d5e0032 bed368e3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -390,7 +390,7 @@ interface INetworkManagementService
    /**
     * Setup a new VPN.
     */
    void createVirtualNetwork(int netId, boolean hasDNS, boolean secure);
    void createVirtualNetwork(int netId, boolean secure);

    /**
     * Remove a network.
+0 −1
Original line number Diff line number Diff line
@@ -5714,7 +5714,6 @@ public class ConnectivityService extends IConnectivityManager.Stub
                // This should never fail.  Specifying an already in use NetID will cause failure.
                if (networkAgent.isVPN()) {
                    mNMS.createVirtualNetwork(networkAgent.network.netId,
                            !networkAgent.linkProperties.getDnsServers().isEmpty(),
                            (networkAgent.networkMisc == null ||
                                !networkAgent.networkMisc.allowBypass));
                } else {
+2 −2
Original line number Diff line number Diff line
@@ -2308,11 +2308,11 @@ public class NetworkManagementService extends INetworkManagementService.Stub
    }

    @Override
    public void createVirtualNetwork(int netId, boolean hasDNS, boolean secure) {
    public void createVirtualNetwork(int netId, boolean secure) {
        mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG);

        try {
            mNetdService.networkCreateVpn(netId, hasDNS, secure);
            mNetdService.networkCreateVpn(netId, secure);
        } catch (RemoteException | ServiceSpecificException e) {
            throw new IllegalStateException(e);
        }