mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-02-11 00:00:08 +08:00
Add a few more static profiles
This commit is contained in:
@@ -18,6 +18,18 @@ struct VPNProfile {
|
||||
}
|
||||
|
||||
extension VPNProfile {
|
||||
///
|
||||
static let general: VPNProfile = {
|
||||
let configuration: String = <#OPENVPN_CONFIGURATION#>
|
||||
|
||||
let username: String? = <#OPENVPN_USERNAME#>
|
||||
let password: String? = <#OPENVPN_PASSWORD#>
|
||||
|
||||
let settings: [String: String]? = <#OPENVPN_ADDITIONAL_SETTINGS#>
|
||||
|
||||
return VPNProfile(configuration: configuration, username: username, password: password, settings: settings)
|
||||
}()
|
||||
|
||||
///
|
||||
static let caOnly: VPNProfile = {
|
||||
let configuration: String = <#OPENVPN_CONFIGURATION#>
|
||||
@@ -26,7 +38,7 @@ extension VPNProfile {
|
||||
let password: String? = <#OPENVPN_PASSWORD#>
|
||||
|
||||
let settings: [String: String]? = <#OPENVPN_ADDITIONAL_SETTINGS#>
|
||||
|
||||
|
||||
return VPNProfile(configuration: configuration, username: username, password: password, settings: settings)
|
||||
}()
|
||||
|
||||
@@ -41,4 +53,16 @@ extension VPNProfile {
|
||||
|
||||
return VPNProfile(configuration: configuration, username: username, password: password, settings: settings)
|
||||
}()
|
||||
|
||||
///
|
||||
static let withoutCredentials: VPNProfile = {
|
||||
let configuration: String = <#OPENVPN_CONFIGURATION#>
|
||||
|
||||
let username: String? = <#OPENVPN_USERNAME#>
|
||||
let password: String? = <#OPENVPN_PASSWORD#>
|
||||
|
||||
let settings: [String: String]? = <#OPENVPN_ADDITIONAL_SETTINGS#>
|
||||
|
||||
return VPNProfile(configuration: configuration, username: username, password: password, settings: settings)
|
||||
}()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user