Declare additional static profiles

This commit is contained in:
Sergey Abramchuk
2020-06-16 11:58:46 +03:00
parent d683b45480
commit e6c8bd457a

View File

@@ -9,11 +9,30 @@
import Foundation
struct VPNProfile {
static let username: String = <#OPENVPN_USERNAME#>
static let password: String = <#OPENVPN_PASSWORD#>
let configuration: String
static let configuration: String = <#OPENVPN_CONFIGURATION#>
static let remoteHost: String = <#OPENVPN_REMOTE_HOST#>
static let remotePort: Int = <#OPENVPN_REMOTE_PORT#>
let username: String?
let password: String?
}
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)
}()
}