onDemandRules
A list of ordered rules that defines the networks on which the DNS settings will apply.
Declaration
var onDemandRules: [NEOnDemandRule]? { get set }Discussion
An On Demand rule with the action NEOnDemandRuleAction.connect defines a network on which the DNS settings apply. An On Demand rule with the action NEOnDemandRuleAction.disconnect causes DNS settings to not apply. An On Demand rule with the action of NEOnDemandRuleAction.evaluateConnection can be used to enable the DNS settings on a network with excluded domains, as specified using a NEEvaluateConnectionRuleAction.neverConnect rule.