aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-01-28 13:05:16 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-28 16:07:28 +0530
commitd1f83d167e0efa4d732cec44afb239357bdc4474 (patch)
treec82e9e87d67d9e5858333046ab67888f2d9381e2 /WireGuard
parentTunnelsManager: Invoke reload() in a subsequent runloop (diff)
downloadwireguard-apple-d1f83d167e0efa4d732cec44afb239357bdc4474.tar.xz
wireguard-apple-d1f83d167e0efa4d732cec44afb239357bdc4474.zip
Persistent Keepalive detail should read 'every n seconds'
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard')
-rw-r--r--WireGuard/WireGuard/Base.lproj/Localizable.strings2
-rw-r--r--WireGuard/WireGuard/UI/TunnelViewModel.swift2
2 files changed, 3 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/Base.lproj/Localizable.strings b/WireGuard/WireGuard/Base.lproj/Localizable.strings
index 2133331f..60bd6fbc 100644
--- a/WireGuard/WireGuard/Base.lproj/Localizable.strings
+++ b/WireGuard/WireGuard/Base.lproj/Localizable.strings
@@ -93,6 +93,8 @@
"tunnelEditPlaceholderTextStronglyRecommended" = "Strongly recommended";
"tunnelEditPlaceholderTextOff" = "Off";
+"tunnelPeerPersistentKeepaliveValue (%d)" = "every %d seconds";
+
// Error alerts while creating / editing a tunnel configuration
/* Alert title for error in the interface data */
diff --git a/WireGuard/WireGuard/UI/TunnelViewModel.swift b/WireGuard/WireGuard/UI/TunnelViewModel.swift
index 9124a004..805e03d3 100644
--- a/WireGuard/WireGuard/UI/TunnelViewModel.swift
+++ b/WireGuard/WireGuard/UI/TunnelViewModel.swift
@@ -252,7 +252,7 @@ class TunnelViewModel {
scratchpad[.endpoint] = endpoint.stringRepresentation
}
if let persistentKeepAlive = config.persistentKeepAlive {
- scratchpad[.persistentKeepAlive] = String(persistentKeepAlive)
+ scratchpad[.persistentKeepAlive] = tr(format: "tunnelPeerPersistentKeepaliveValue (%d)", persistentKeepAlive)
}
// TODO(roopc): These next 3 fields should be prettier
// - bytes() in https://git.zx2c4.com/WireGuard/tree/src/tools/show.c#n185