Merge "Fix NetworkMonitor won't do private dns resolution" am: e121a329b8 am: 39810500f0
am: 266e2c5ac2
Change-Id: I2785e0aedd229aba6c1d8e8df09ee5c7a209b74c
This commit is contained in:
@@ -6382,6 +6382,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);
|
||||
|
||||
Reference in New Issue
Block a user