mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-04-24 00:00:05 +08:00
Rename name to profileName and remove ca property
This commit is contained in:
@@ -9,14 +9,15 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
struct VPNProfile {
|
struct VPNProfile {
|
||||||
let name: String
|
let profileName: String
|
||||||
|
|
||||||
let configuration: String
|
let configuration: String
|
||||||
|
|
||||||
let ca: String?
|
|
||||||
let cert: String?
|
let cert: String?
|
||||||
let key: String?
|
let key: String?
|
||||||
|
|
||||||
|
let keyPassword: String?
|
||||||
|
|
||||||
let username: String?
|
let username: String?
|
||||||
let password: String?
|
let password: String?
|
||||||
|
|
||||||
@@ -24,30 +25,25 @@ struct VPNProfile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
extension VPNProfile {
|
extension VPNProfile {
|
||||||
///
|
|
||||||
static let general: VPNProfile = {
|
static let live: VPNProfile = {
|
||||||
let name: String = <#OPENVPN_PROFILE_NAME#>
|
let profileName: String = <#OPENVPN_PROFILE_NAME#>
|
||||||
|
|
||||||
let configuration: String = <#OPENVPN_CONFIGURATION#>
|
let configuration: String = <#OPENVPN_CONFIGURATION#>
|
||||||
|
|
||||||
let ca: String? = <#OPENVPN_CA#>
|
|
||||||
let cert: String? = <#OPENVPN_CERT#>
|
let cert: String? = <#OPENVPN_CERT#>
|
||||||
let key: String? = <#OPENVPN_KEY#>
|
let key: String? = <#OPENVPN_KEY#>
|
||||||
|
|
||||||
|
let keyPassword: String? = <#PRIVATE_KEY_PASSWORD#>
|
||||||
|
|
||||||
let username: String? = <#OPENVPN_USERNAME#>
|
let username: String? = <#OPENVPN_USERNAME#>
|
||||||
let password: String? = <#OPENVPN_PASSWORD#>
|
let password: String? = <#OPENVPN_PASSWORD#>
|
||||||
|
|
||||||
let settings: [String: String]? = <#OPENVPN_ADDITIONAL_SETTINGS#>
|
let settings: [String: String]? = <#OPENVPN_ADDITIONAL_SETTINGS#>
|
||||||
|
|
||||||
return VPNProfile(
|
return VPNProfile(
|
||||||
name: name, configuration: configuration, ca: ca, cert: cert, key: key,
|
profileName: profileName, configuration: configuration, cert: cert, key: key, keyPassword: keyPassword,
|
||||||
username: username, password: password, settings: settings
|
username: username, password: password, settings: settings
|
||||||
)
|
)
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
extension VPNProfile {
|
|
||||||
static let profileCollection = [
|
|
||||||
VPNProfile.general
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user