hi:
I want to set up a DNS packet to enter the VPN tunnel. I set it this way, but it didn't work.
//networkSettings is NEPacketTunnelNetworkSettings
NEIPv4Settings *ipv4Setting = networkSettings.IPv4Settings;
NSMutableArray *routerArr = [NSMutableArray array];
for (NSString *ip in networkSettings.DNSSettings.servers) {
NEIPv4Route *route = [[NEIPv4Route alloc] initWithDestinationAddress:ip subnetMask:@"255.255.255.255"];
[routerArr addObject:route];
}
ipv4Setting.includedRoutes = routerArr;
1.How should I set up to properly import DNS packets into the tunnel?
2.I want to determine if the DNS packet can be imported into the tunnel?