Persistent Keepalive detail should read 'every n seconds'

This commit is contained in:
Roopesh Chander 2019-01-28 13:05:16 +05:30
parent df7bdc0baa
commit 69fddfa1f8
2 changed files with 3 additions and 1 deletions

View File

@ -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 */

View File

@ -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