Skip to content
This repository was archived by the owner on Mar 19, 2022. It is now read-only.
This repository was archived by the owner on Mar 19, 2022. It is now read-only.

Error setting up TUN/TAP interface #219

@Yangjiajiaa

Description

@Yangjiajiaa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions