Hi,
Is it possible to get NEDNSSettings to enable for only .wifi or only .cellular?
I tried using interfaceTypeMatch = .wifi standalone and I also tried it together with a NEEvaluateConnectionRule matching all domains but it skips using the EDNSSettings also on .cellular even if .interfaceTypeMatch is .wifi.
This is the more advanced example of the two and it seems to not care about the interfaceTypeMatch flag:
let evaluateRule = NEEvaluateConnectionRule(matchDomains: [], andAction: .neverConnect)
let evaluateConnectionRule = NEOnDemandRuleEvaluateConnection()
evaluateConnectionRule.connectionRules = [evaluateRule]
evaluateConnectionRule.interfaceTypeMatch = .wiFi
self.dnsManager.onDemandRules = [evaluateConnectionRule]
Should this be possible or does it only work with VPN?