Declare additional static profiles

This commit is contained in:
Sergey Abramchuk
2020-06-16 11:58:46 +03:00
parent d683b45480
commit e6c8bd457a
+25 -6
View File
@@ -9,11 +9,30 @@
import Foundation import Foundation
struct VPNProfile { struct VPNProfile {
static let username: String = <#OPENVPN_USERNAME#> let configuration: String
static let password: String = <#OPENVPN_PASSWORD#>
static let configuration: String = <#OPENVPN_CONFIGURATION#> let username: String?
let password: String?
static let remoteHost: String = <#OPENVPN_REMOTE_HOST#> }
static let remotePort: Int = <#OPENVPN_REMOTE_PORT#>
extension VPNProfile {
///
static let tlsClient: VPNProfile = {
let configuration: String = <#OPENVPN_CONFIGURATION#>
let username: String? = <#OPENVPN_USERNAME#>
let password: String? = <#OPENVPN_PASSWORD#>
return VPNProfile(configuration: configuration, username: username, password: password)
}()
///
static let certWithKey: VPNProfile = {
let configuration: String = <#OPENVPN_CONFIGURATION#>
let username: String? = <#OPENVPN_USERNAME#>
let password: String? = <#OPENVPN_PASSWORD#>
return VPNProfile(configuration: configuration, username: username, password: password)
}()
} }