Tunnel view model: The view model applies for both editing and viewing

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander
2018-10-23 17:48:07 +05:30
parent 20b49518da
commit 6243717a37
2 changed files with 10 additions and 10 deletions
@@ -12,13 +12,13 @@ import UIKit
class TunnelEditTableViewController: UITableViewController {
let interfaceEditFieldsBySection: [[TunnelViewModel.InterfaceEditField]] = [
let interfaceEditFieldsBySection: [[TunnelViewModel.InterfaceField]] = [
[.name],
[.privateKey, .publicKey, .generateKeyPair],
[.addresses, .listenPort, .mtu, .dns]
]
let peerEditFieldsBySection: [[TunnelViewModel.PeerEditField]] = [
let peerEditFieldsBySection: [[TunnelViewModel.PeerField]] = [
[.publicKey, .preSharedKey, .endpoint,
.allowedIPs, .excludePrivateIPs,
.persistentKeepAlive,