diff options
author | Roopesh Chander <roop@roopc.net> | 2019-01-31 18:17:46 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2019-01-31 18:22:08 +0530 |
commit | 1189b3d700b352f9ffc86b0edfb7faa8813288e9 (patch) | |
tree | 4fc254fd28a6861597675eea910c6f23aa6d032f /WireGuard/WireGuard/UI/TunnelViewModel.swift | |
parent | iOS: Make it compile again (diff) | |
download | wireguard-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 '')
-rw-r--r-- | WireGuard/WireGuard/UI/TunnelViewModel.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/TunnelViewModel.swift b/WireGuard/WireGuard/UI/TunnelViewModel.swift index 5fbe20d..886703e 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] = tr(format: "tunnelPeerPersistentKeepaliveValue (%d)", persistentKeepAlive) + scratchpad[.persistentKeepAlive] = String(persistentKeepAlive) } if let rxBytes = config.rxBytes { scratchpad[.rxBytes] = prettyBytes(rxBytes) |