mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-04-24 00:00:05 +08:00
Update readme file
This commit is contained in:
@@ -35,7 +35,7 @@ To install OpenVPNAdapter with Cocoapods, add the following lines to your `Podfi
|
|||||||
```ruby
|
```ruby
|
||||||
target 'Your Target Name' do
|
target 'Your Target Name' do
|
||||||
use_frameworks!
|
use_frameworks!
|
||||||
pod 'OpenVPNAdapter', :git => 'https://github.com/ss-abramchuk/OpenVPNAdapter.git', :tag => '0.6.0'
|
pod 'OpenVPNAdapter', :git => 'https://github.com/ss-abramchuk/OpenVPNAdapter.git', :tag => '0.7.0'
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -191,16 +191,16 @@ class PacketTunnelProvider: NEPacketTunnelProvider {
|
|||||||
// configuration.tunPersist = true
|
// configuration.tunPersist = true
|
||||||
|
|
||||||
// Apply OpenVPN configuration
|
// Apply OpenVPN configuration
|
||||||
let properties: OpenVPNProperties
|
let evaluation: OpenVPNConfigurationEvaluation
|
||||||
do {
|
do {
|
||||||
properties = try vpnAdapter.apply(configuration: configuration)
|
evaluation = try vpnAdapter.apply(configuration: configuration)
|
||||||
} catch {
|
} catch {
|
||||||
completionHandler(error)
|
completionHandler(error)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Provide credentials if needed
|
// Provide credentials if needed
|
||||||
if !properties.autologin {
|
if !evaluation.autologin {
|
||||||
// If your VPN configuration requires user credentials you can provide them by
|
// If your VPN configuration requires user credentials you can provide them by
|
||||||
// `protocolConfiguration.username` and `protocolConfiguration.passwordReference`
|
// `protocolConfiguration.username` and `protocolConfiguration.passwordReference`
|
||||||
// properties. It is recommended to use persistent keychain reference to a keychain
|
// properties. It is recommended to use persistent keychain reference to a keychain
|
||||||
|
|||||||
Reference in New Issue
Block a user