passepartoutvpn / tunnelkit

VPN client library for Apple platforms.
GNU General Public License v3.0
3 stars 1 forks source link

Inherits from "OpenVPNTunnelProvider" and fails to connect #321

Closed ComedyG closed 1 year ago

ComedyG commented 1 year ago

Summary

I integrated OpenVpn related source code from Tunnelkit into my static library and then connected it to the APP project, but after inherits "PacketTunnelProvider" from "OpenVPNTunnelProvider" in NetworkExtension, The tunnel could not be connected.

Steps to reproduce

In PacketTunnelProvider File:

class PacketTunnelProvider: OpenVPNTunnelProvider { override func startTunnel(options: [String : NSObject]?, completionHandler: @escaping (Error?) -> Void) {

    dataCountInterval = 3
    super.startTunnel(options: options, completionHandler: completionHandler)
}

}

Until then, I can guarantee that the VPN configuration and access steps are correct.

What is the current bug behavior?

State after clicking to connect: VPNStatusDidChange: disconnected VPNStatusDidChange: connecting

What is the expected correct behavior?

VPNStatusDidChange: disconnected VPNStatusDidChange: connecting VPNStatusDidChange: connected

I hope you can give me some tips, thanks

keeshux commented 1 year ago

There is a demo for this. Again, this is not an issue. Please do not reopen.

sergey-zhuravel commented 1 year ago

ComedyG did you manage to solve the problem?