I read the previous issue and tried to set it,but it doesn't work.
networkSettings always nil
func openVPNAdapter(_ openVPNAdapter: OpenVPNAdapter, configureTunnelWithNetworkSettings networkSettings: NEPacketTunnelNetworkSettings?, completionHandler: @escaping (Error?) -> Void) { networkSettings?.dnsSettings?.matchDomains = [""] NSLog("--------\(String(describing: networkSettings))") setTunnelNetworkSettings(networkSettings, completionHandler: completionHandler) }
How can I fix this?
hi @ss-abramchuk
Here is the error log
[Extension com.XHGZS.Mango.packetTunnel]: provider set tunnel configuration to (null)
[Error] Error Domain=me.ss-abramchuk.openvpn-adapter.error-domain Code=20 "OpenVPN fatal error occured" UserInfo={NSLocalizedDescription=OpenVPN fatal error occured, me.ss-abramchuk.openvpn-adapter.error-key.message=tun_prop_route_error: tun_builder_reroute_gw for redirect-gateway failed, me.ss-abramchuk.openvpn-adapter.error-key.fatal=true, NSLocalizedFailureReason=Error setting up TUN/TAP interface.}
I read the previous issue and tried to set it,but it doesn't work. networkSettings always nil
func openVPNAdapter(_ openVPNAdapter: OpenVPNAdapter, configureTunnelWithNetworkSettings networkSettings: NEPacketTunnelNetworkSettings?, completionHandler: @escaping (Error?) -> Void) { networkSettings?.dnsSettings?.matchDomains = [""] NSLog("--------\(String(describing: networkSettings))") setTunnelNetworkSettings(networkSettings, completionHandler: completionHandler) }
How can I fix this?Thanks.