Add profile name property to the VPN profile

This commit is contained in:
Sergey Abramchuk
2020-08-17 21:32:01 +03:00
parent 7c656884a2
commit cd40d43983
+5 -1
View File
@@ -9,6 +9,8 @@
import Foundation import Foundation
struct VPNProfile { struct VPNProfile {
let name: String
let configuration: String let configuration: String
let ca: String? let ca: String?
@@ -24,6 +26,8 @@ struct VPNProfile {
extension VPNProfile { extension VPNProfile {
/// ///
static let general: VPNProfile = { static let general: VPNProfile = {
let name: String = <#OPENVPN_PROFILE_NAME#>
let configuration: String = <#OPENVPN_CONFIGURATION#> let configuration: String = <#OPENVPN_CONFIGURATION#>
let ca: String? = <#OPENVPN_CA#> let ca: String? = <#OPENVPN_CA#>
@@ -36,7 +40,7 @@ extension VPNProfile {
let settings: [String: String]? = <#OPENVPN_ADDITIONAL_SETTINGS#> let settings: [String: String]? = <#OPENVPN_ADDITIONAL_SETTINGS#>
return VPNProfile( return VPNProfile(
configuration: configuration, ca: ca, cert: cert, key: key, name: name, configuration: configuration, ca: ca, cert: cert, key: key,
username: username, password: password, settings: settings username: username, password: password, settings: settings
) )
}() }()