aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/macOS/ViewController
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-01-31 18:17:46 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-31 18:22:08 +0530
commit1189b3d700b352f9ffc86b0edfb7faa8813288e9 (patch)
tree4fc254fd28a6861597675eea910c6f23aa6d032f /WireGuard/WireGuard/UI/macOS/ViewController
parentiOS: Make it compile again (diff)
downloadwireguard-apple-1189b3d700b352f9ffc86b0edfb7faa8813288e9.tar.xz
wireguard-apple-1189b3d700b352f9ffc86b0edfb7faa8813288e9.zip
Fix handling of 'PersistentKeepalive: every n seconds'
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI/macOS/ViewController')
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift6
1 files changed, 5 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
index c9cb09a7..9e800092 100644
--- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
+++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
@@ -286,7 +286,11 @@ extension TunnelDetailTableViewController: NSTableViewDelegate {
let cell: KeyValueRow = tableView.dequeueReusableCell()
let localizedKeyString = modelRow.isTitleRow() ? modelRow.localizedSectionKeyString() : field.localizedUIString
cell.key = tr(format: "macFieldKey (%@)", localizedKeyString)
- cell.value = peerData[field]
+ if field == .persistentKeepAlive {
+ cell.value = tr(format: "tunnelPeerPersistentKeepaliveValue (%@)", peerData[field])
+ } else {
+ cell.value = peerData[field]
+ }
cell.isKeyInBold = modelRow.isTitleRow()
return cell
case .spacerRow: