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

Commit bd8759bd authored by Pierre Imai's avatar Pierre Imai
Browse files

Use Netd's binder interface to set resolver configuration.

BUG: 25731675
Change-Id: I86257bc84371832466161e5357ae173c305a7d18
parent 8e48e678
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4255,10 +4255,10 @@ public class ConnectivityService extends IConnectivityManager.Stub
        Collection<InetAddress> dnses = newLp.getDnsServers();
        if (DBG) log("Setting DNS servers for network " + netId + " to " + dnses);
        try {
            mNetd.setDnsServersForNetwork(
            mNetd.setDnsConfigurationForNetwork(
                    netId, NetworkUtils.makeStrings(dnses), newLp.getDomains());
        } catch (Exception e) {
            loge("Exception in setDnsServersForNetwork: " + e);
            loge("Exception in setDnsConfigurationForNetwork: " + e);
        }
        final NetworkAgentInfo defaultNai = getDefaultNetwork();
        if (defaultNai != null && defaultNai.network.netId == netId) {