Fix handling of 'PersistentKeepalive: every n seconds'

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander
2019-01-31 18:17:46 +05:30
parent f292a0ec7a
commit 1189b3d700
4 changed files with 12 additions and 4 deletions
@@ -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: