Merge "Fix NetworkMonitor won't do private dns resolution"
am: e121a329b8
Change-Id: I7c7a573bef77ba952219e6f6f56ab11f0211e0a7
This commit is contained in:
@@ -6389,6 +6389,11 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
Slog.wtf(TAG, networkAgent.name() + " connected with null LinkProperties");
|
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());
|
handlePerNetworkPrivateDnsConfig(networkAgent, mDnsManager.getPrivateDnsConfig());
|
||||||
updateLinkProperties(networkAgent, new LinkProperties(networkAgent.linkProperties),
|
updateLinkProperties(networkAgent, new LinkProperties(networkAgent.linkProperties),
|
||||||
null);
|
null);
|
||||||
|
|||||||
Reference in New Issue
Block a user