Post

Replies

Boosts

Views

Created

Disconnect from VPN if OnDemand Search Domain rules matches
Hello, Once connected over the VPN, I am looking for the disconnect solution from VPN if OnDemand Search Domain rules matches. I want if user visits the Netflix or Prime videos websites/app and VPN is connected, then VPN should automatically disconnect I tried below code using the OnDemandRules but VPN is not disconnecting: let domainRule = NEOnDemandRuleDisconnect()     domainRule.dnsSearchDomainMatch = ["*.hotstar.com", "*.netflix.com", "*.primevideo.com"]     domainRule.probeURL = NSURL(string: "url.accessible.from.internal") as URL?         manager.onDemandRules = [domainRule] Any help is appreciated.
2
0
1.1k
Mar ’21