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

Commit e453b8ce authored by Lorenzo Colitti's avatar Lorenzo Colitti Committed by Android Git Automerger
Browse files

am 76f08750: Merge "Disable mDefaultDns to see if we can remove it." into mnc-dev

* commit '76f08750':
  Disable mDefaultDns to see if we can remove it.
parents 40678290 76f08750
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -3819,10 +3819,12 @@ public class ConnectivityService extends IConnectivityManager.Stub
//        }
        updateTcpBufferSizes(networkAgent);

        // TODO: deprecate and remove mDefaultDns when we can do so safely.
        // For now, use it only when the network has Internet access. http://b/18327075
        final boolean useDefaultDns = networkAgent.networkCapabilities.hasCapability(
                NET_CAPABILITY_INTERNET);
        // TODO: deprecate and remove mDefaultDns when we can do so safely. See http://b/18327075
        // In L, we used it only when the network had Internet access but provided no DNS servers.
        // For now, just disable it, and if disabling it doesn't break things, remove it.
        // final boolean useDefaultDns = networkAgent.networkCapabilities.hasCapability(
        //        NET_CAPABILITY_INTERNET);
        final boolean useDefaultDns = false;
        final boolean flushDns = updateRoutes(newLp, oldLp, netId);
        updateDnses(newLp, oldLp, netId, flushDns, useDefaultDns);