aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-11-07 05:45:39 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-11-07 05:45:39 +0100
commitd0ec532bd373f3411452027ff5c217099998d9a9 (patch)
tree84d3fe1278a228ccb0b720bff51e37303d3929a2 /WireGuard/WireGuard
parentMake license consistent (diff)
downloadwireguard-apple-d0ec532bd373f3411452027ff5c217099998d9a9.tar.xz
wireguard-apple-d0ec532bd373f3411452027ff5c217099998d9a9.zip
Settings: show build id
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'WireGuard/WireGuard')
-rw-r--r--WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift5
1 files changed, 4 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift b/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift
index efa54bc..5374b40 100644
--- a/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift
@@ -143,7 +143,10 @@ extension SettingsTableViewController {
let cell = tableView.dequeueReusableCell(withIdentifier: TunnelSettingsTableViewKeyValueCell.id, for: indexPath) as! TunnelSettingsTableViewKeyValueCell
cell.key = field.rawValue
if (field == .iosAppVersion) {
- let appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "Unknown version"
+ var appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "Unknown version"
+ if let appBuild = Bundle.main.infoDictionary?["CFBundleVersion"] as? String {
+ appVersion += " (\(appBuild))"
+ }
cell.value = appVersion
} else if (field == .goBackendVersion) {
cell.value = WIREGUARD_GO_VERSION