mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-04-24 00:00:05 +08:00
Declare additional static profiles
This commit is contained in:
@@ -9,11 +9,30 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
struct VPNProfile {
|
struct VPNProfile {
|
||||||
static let username: String = <#OPENVPN_USERNAME#>
|
let configuration: String
|
||||||
static let password: String = <#OPENVPN_PASSWORD#>
|
|
||||||
|
|
||||||
static let configuration: String = <#OPENVPN_CONFIGURATION#>
|
let username: String?
|
||||||
|
let password: String?
|
||||||
static let remoteHost: String = <#OPENVPN_REMOTE_HOST#>
|
}
|
||||||
static let remotePort: Int = <#OPENVPN_REMOTE_PORT#>
|
|
||||||
|
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)
|
||||||
|
}()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user