Replace useTls with mode in PrivateDnsConfig
In PrivateDnsConfig class, `useTls` is replaced with `mode`. This CL a corresponding change. Bug: 240259333 Test: atest ConnectivityCoverageTests Change-Id: I60c53e52f287fc7fa05543603a62632d934bb2e6
This commit is contained in:
parent
063193b375
commit
9738b47758
1 changed files with 11 additions and 10 deletions
|
|
@ -4784,7 +4784,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||
// If the Private DNS mode is opportunistic, reprogram the DNS servers
|
||||
// in order to restart a validation pass from within netd.
|
||||
final PrivateDnsConfig cfg = mDnsManager.getPrivateDnsConfig();
|
||||
if (cfg.useTls && TextUtils.isEmpty(cfg.hostname)) {
|
||||
if (cfg.inOpportunisticMode()) {
|
||||
updateDnses(nai.linkProperties, null, nai.network.getNetId());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue