Comments (7)
Hi @RanchenY,
Have you provided a PacketFlow
object to OpenVPNAdapter via configureTunnelWithSettings:callback:
method of OpenVPNAdapterDelegate
?
from openvpnadapter.
Hi @ss-abramchuk,
I did't do anything in this method.
Need setting something?
from openvpnadapter.
Yes, you need to pass NEPacketTunnelFlow
object if everything is fine or nil if there was a error.
func configureTunnel(settings: NEPacketTunnelNetworkSettings, callback: @escaping (OpenVPNAdapterPacketFlow?) -> Void) {
setTunnelNetworkSettings(settings) { (error) in
callback(error == nil ? self.packetFlow : nil)
}
}
callback
accepts argument of type OpenVPNAdapterPacketFlow
so don't forget to add this line of code -> extension NEPacketTunnelFlow: OpenVPNAdapterPacketFlow { }
from openvpnadapter.
I am sorry, I use the oc language.
But i don't understand about the method setTunnelNetworkSettings()
.
from openvpnadapter.
OpenVPNAdapter is designed to use in conjunction with NEPacketTunnelProvider, method setTunnelNetworkSettings:completionHandler:
is used to specify tunnel settings. You can read more of it here
from openvpnadapter.
Hi,
I read this link, it means create an extension? I do that, but get a hit, like this :-[NEProvider init]:51 NEProvider objects cannot be instantiated from non-extension processes
..
from openvpnadapter.
You should read any tutorial about extensions. For example this one -> ios-9-vpn-api-network-extension-udp. I'm closing this issue cause it no more related to adapter.
from openvpnadapter.
Related Issues (20)
- System Network Extension connects to VPN via OpenVPN protocol, but can't view any web pages HOT 2
- v0.7.0 connect failed HOT 5
- Disconnected and reconnected without network HOT 4
- 只在App应用内部使用openVPN, 就不需要使用Application Extension了吧
- Problem with SPM HOT 2
- Not working with iOS 15 and macOS 12.0.
- How to increase timeout during initial handshake? HOT 3
- I don't get call of func startTunnel(options...) on MacOS 10.15.7 but it works good on MacOS 11... HOT 4
- iOS client may not support pac
- 有人碰到过这个问题么,上传应用的时候
- Error setting up TUN/TAP interface
- Did it still work? HOT 4
- When i called removeFromPreferences, get some error
- Can't save config when connecting though "Intent Extension". HOT 1
- About Process IPv4 or IPv6 route
- .OVPN connectivity
- why can not I connect by password and username HOT 1
- Switch Wi-Fi to 4G, and the VPN is closed HOT 4
- not working on mac catalyst HOT 3
- Limit OpenVPN Connection time
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openvpnadapter.