summaryrefslogtreecommitdiffhomepage
path: root/mullvad-cli/src
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2020-08-19 12:08:52 +0200
committerDavid Lönnhager <david.l@mullvad.net>2020-08-20 14:41:42 +0200
commitd0fcbfaaebb69db037dc63cb41c6eb3dc58aa49b (patch)
tree2a7e0931f69ba93f00824d9a96d97fb9eb885f5b /mullvad-cli/src
parent5e25ef9e6d784c86ff9f346428d81fe7f05c4e7a (diff)
downloadmullvadvpn-d0fcbfaaebb69db037dc63cb41c6eb3dc58aa49b.tar.xz
mullvadvpn-d0fcbfaaebb69db037dc63cb41c6eb3dc58aa49b.zip
Remove key rotation interval calculation from management interface
Diffstat (limited to 'mullvad-cli/src')
-rw-r--r--mullvad-cli/src/cmds/tunnel.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/mullvad-cli/src/cmds/tunnel.rs b/mullvad-cli/src/cmds/tunnel.rs
index 601115003b..528ebd005e 100644
--- a/mullvad-cli/src/cmds/tunnel.rs
+++ b/mullvad-cli/src/cmds/tunnel.rs
@@ -216,10 +216,12 @@ impl Tunnel {
async fn process_wireguard_rotation_interval_get() -> Result<()> {
let tunnel_options = Self::get_tunnel_options().await?;
- println!(
- "Rotation interval: {} hour(s)",
- tunnel_options.wireguard.unwrap().automatic_rotation
- );
+ match tunnel_options.wireguard.unwrap().automatic_rotation {
+ Some(interval) => {
+ println!("Rotation interval: {} hour(s)", interval.interval);
+ }
+ None => println!("Rotation interval: default"),
+ }
Ok(())
}