Tunnel creation: Placeholders for Listen port, Pre-shared key, Persistent Keepalive
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
@@ -190,7 +190,7 @@ extension TunnelEditTableViewController {
|
|||||||
// Set placeholder text
|
// Set placeholder text
|
||||||
if (field == .name || field == .privateKey) {
|
if (field == .name || field == .privateKey) {
|
||||||
cell.placeholderText = "Required"
|
cell.placeholderText = "Required"
|
||||||
} else if (field == .mtu) {
|
} else if (field == .mtu || field == .listenPort) {
|
||||||
cell.placeholderText = "Automatic"
|
cell.placeholderText = "Automatic"
|
||||||
}
|
}
|
||||||
// Set editable
|
// Set editable
|
||||||
@@ -273,7 +273,12 @@ extension TunnelEditTableViewController {
|
|||||||
// Set placeholder text
|
// Set placeholder text
|
||||||
if (field == .publicKey) {
|
if (field == .publicKey) {
|
||||||
cell.placeholderText = "Required"
|
cell.placeholderText = "Required"
|
||||||
|
} else if (field == .preSharedKey) {
|
||||||
|
cell.placeholderText = "Optional"
|
||||||
|
} else if (field == .persistentKeepAlive) {
|
||||||
|
cell.placeholderText = "Off"
|
||||||
}
|
}
|
||||||
|
// Set keyboardType
|
||||||
if (field == .persistentKeepAlive) {
|
if (field == .persistentKeepAlive) {
|
||||||
cell.keyboardType = .numberPad
|
cell.keyboardType = .numberPad
|
||||||
} else if (field == .allowedIPs) {
|
} else if (field == .allowedIPs) {
|
||||||
|
|||||||
Reference in New Issue
Block a user