diff options
| author | Emīls Piņķis <emils@mullvad.net> | 2019-09-16 19:58:28 +0100 |
|---|---|---|
| committer | Emīls Piņķis <emils@mullvad.net> | 2019-09-17 09:53:56 +0100 |
| commit | 40abfa94dc965ac54bec658d8a06a4d1be68fc67 (patch) | |
| tree | d7e91f5ce51f158395642abf54b9c7f968db8b76 /mullvad-cli/src | |
| parent | e3596cc4f8e8b3d37e780ec7c23b3cffe375fc7b (diff) | |
| download | mullvadvpn-40abfa94dc965ac54bec658d8a06a4d1be68fc67.tar.xz mullvadvpn-40abfa94dc965ac54bec658d8a06a4d1be68fc67.zip | |
Display age of creation for WireGuard key in CLI
Diffstat (limited to 'mullvad-cli/src')
| -rw-r--r-- | mullvad-cli/src/cmds/tunnel.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mullvad-cli/src/cmds/tunnel.rs b/mullvad-cli/src/cmds/tunnel.rs index dc16705558..75119ac87d 100644 --- a/mullvad-cli/src/cmds/tunnel.rs +++ b/mullvad-cli/src/cmds/tunnel.rs @@ -158,7 +158,11 @@ impl Tunnel { let mut rpc = new_rpc_client()?; match rpc.get_wireguard_key()? { Some(key) => { - println!("Current key: {}", key); + println!("Current key : {}", &key.key); + println!( + "Key created on : {}", + &key.created.with_timezone(&chrono::offset::Local) + ); } None => { println!("No key is set"); |
