I use NEVPNManager to creat Personal VPN (IKEV2). It works well.But When I want to use NEProxySettings to add expectionList,it didn't work.I don't know why.I want some domain names to not use proxies,such as my own VPN App, because it will be very slow.My App server address name is "xxx.xxx.xx". VPN server IP is "yyy.yyy.yy, port is 500".Here is my code:
NEVPNProtocolIKEv2 *vpnProtocollIKEv2 = [[NEVPNProtocolIKEv2 alloc] init];
NEProxySettings *proxySettings = [[NEProxySettings alloc] init];
NEProxyServer *httpsServer = [[NEProxyServer alloc] initWithAddress:"yyy.yyy.yy" port:500];
proxySettings.HTTPSServer = httpsServer;
NEProxyServer *httpServer = [[NEProxyServer alloc] initWithAddress:"yyy.yyy.yy" port:500];
proxySettings.HTTPServer = httpServer;
proxySettings.autoProxyConfigurationEnabled = NO;
proxySettings.excludeSimpleHostnames = YES;
proxySettings.HTTPEnabled = YES;
proxySettings.HTTPSEnabled = YES;
proxySettings.exceptionList = @[@"xxx.xxx.xx",@"*.xxx.xxx.xx"];
vpnProtocollIKEv2.proxySettings = proxySettings;