mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-04-24 00:00:05 +08:00
Add profile name property to the VPN profile
This commit is contained in:
@@ -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
|
||||||
)
|
)
|
||||||
}()
|
}()
|
||||||
|
|||||||
Reference in New Issue
Block a user