Closed ComedyG closed 1 year ago
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.
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.
State after clicking to connect: VPNStatusDidChange: disconnected VPNStatusDidChange: connecting
VPNStatusDidChange: disconnected VPNStatusDidChange: connecting VPNStatusDidChange: connected
I hope you can give me some tips, thanks
There is a demo for this. Again, this is not an issue. Please do not reopen.
ComedyG did you manage to solve the problem?
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) {
}
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