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:
Any help is appreciated.
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:
Code Block 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.