aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-10-30 18:50:56 +0530
committerRoopesh Chander <roop@roopc.net>2018-10-30 18:50:56 +0530
commitcd7dd569808cc0d1278cc047e619c766e64c03c6 (patch)
tree6cf18ea35d1906298d7fea5ee5c14292ad88c58f
parentVPN: Refactor use of DNS resolution while activating the tunnel (diff)
downloadwireguard-apple-cd7dd569808cc0d1278cc047e619c766e64c03c6.tar.xz
wireguard-apple-cd7dd569808cc0d1278cc047e619c766e64c03c6.zip
Tunnel creation: Placeholders for Listen port, Pre-shared key, Persistent Keepalive
Signed-off-by: Roopesh Chander <roop@roopc.net>
-rw-r--r--WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift7
1 files changed, 6 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift
index cafc2aa..71187f8 100644
--- a/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift
@@ -190,7 +190,7 @@ extension TunnelEditTableViewController {
// Set placeholder text
if (field == .name || field == .privateKey) {
cell.placeholderText = "Required"
- } else if (field == .mtu) {
+ } else if (field == .mtu || field == .listenPort) {
cell.placeholderText = "Automatic"
}
// Set editable
@@ -273,7 +273,12 @@ extension TunnelEditTableViewController {
// Set placeholder text
if (field == .publicKey) {
cell.placeholderText = "Required"
+ } else if (field == .preSharedKey) {
+ cell.placeholderText = "Optional"
+ } else if (field == .persistentKeepAlive) {
+ cell.placeholderText = "Off"
}
+ // Set keyboardType
if (field == .persistentKeepAlive) {
cell.keyboardType = .numberPad
} else if (field == .allowedIPs) {