Update readme file

This commit is contained in:
Sergey Abramchuk
2020-08-18 14:31:30 +03:00
parent 1843ebfb1d
commit d9346d7622
+4 -4
View File
@@ -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