diff options
| author | David Lönnhager <david.l@mullvad.net> | 2020-08-19 12:08:52 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2020-08-20 14:41:42 +0200 |
| commit | d0fcbfaaebb69db037dc63cb41c6eb3dc58aa49b (patch) | |
| tree | 2a7e0931f69ba93f00824d9a96d97fb9eb885f5b /mullvad-cli/src | |
| parent | 5e25ef9e6d784c86ff9f346428d81fe7f05c4e7a (diff) | |
| download | mullvadvpn-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.rs | 10 |
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(()) } |
