Add remote host and remote port to the profile template

This commit is contained in:
Sergey Abramchuk
2018-09-27 17:15:51 +03:00
parent bc578b423e
commit 1beeda999e
3 changed files with 18 additions and 3 deletions
+8 -3
View File
@@ -9,12 +9,17 @@
import Foundation
struct VPNProfile {
static let username = "<%= OPENVPN_USERNAME %>"
static let password = "<%= OPENVPN_PASSWORD %>"
static let configuration = """
static let username: String = "<%= OPENVPN_USERNAME %>"
static let password: String = "<%= OPENVPN_PASSWORD %>"
static let configuration: String = """
<% OPENVPN_CONFIGURATION.each_line do |line| %>
<%= line %>
<% end %>
"""
static let remoteHost: String = "<%= OPENVPN_REMOTE_HOST %>"
static let remotePort: Int = <%= OPENVPN_REMOTE_PORT %>
}