Merge "Fix NetworkMonitor won't do private dns resolution" am: e121a329b8

am: 39810500f0

Change-Id: I5ec0cb096f2704e21e0c0f296d5cf81ab8808627
This commit is contained in:
lucaslin
2019-04-03 04:25:18 -07:00
committed by android-build-merger

View File

@@ -6389,6 +6389,11 @@ public class ConnectivityService extends IConnectivityManager.Stub
Slog.wtf(TAG, networkAgent.name() + " connected with null LinkProperties");
}
// NetworkCapabilities need to be set before sending the private DNS config to
// NetworkMonitor, otherwise NetworkMonitor cannot determine if validation is required.
synchronized (networkAgent) {
networkAgent.setNetworkCapabilities(networkAgent.networkCapabilities);
}
handlePerNetworkPrivateDnsConfig(networkAgent, mDnsManager.getPrivateDnsConfig());
updateLinkProperties(networkAgent, new LinkProperties(networkAgent.linkProperties),
null);