summaryrefslogtreecommitdiffhomepage
path: root/mullvad-cli/src/cmds/connect.rs
diff options
context:
space:
mode:
authorEmīls <emils@mullvad.net>2022-04-28 14:50:42 +0100
committerEmīls <emils@mullvad.net>2022-05-05 10:16:17 +0100
commitba95533d864ec2ba0de6fc8284fa53841a55e8bb (patch)
tree969bab227f7ccdd97830f5c8c5bee584f0fe1987 /mullvad-cli/src/cmds/connect.rs
parent3a19900e51ca874e8202bfbd2853662a0652863e (diff)
downloadmullvadvpn-ba95533d864ec2ba0de6fc8284fa53841a55e8bb.tar.xz
mullvadvpn-ba95533d864ec2ba0de6fc8284fa53841a55e8bb.zip
Rework output of status subcommand in CLI
The output of the status command is reworked to show hostnames instead of IP addresses and trim the fat. The extra information (tunnel protocols, IP addrresses) are now available with the verbose flag.
Diffstat (limited to 'mullvad-cli/src/cmds/connect.rs')
-rw-r--r--mullvad-cli/src/cmds/connect.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mullvad-cli/src/cmds/connect.rs b/mullvad-cli/src/cmds/connect.rs
index a184e38244..3a879fc6a8 100644
--- a/mullvad-cli/src/cmds/connect.rs
+++ b/mullvad-cli/src/cmds/connect.rs
@@ -34,7 +34,7 @@ impl Command for Connect {
if let Some(mut receiver) = receiver_option {
while let Some(state) = receiver.next().await {
let state = state?;
- format::print_state(&state);
+ format::print_state(&state, false);
match state.state.unwrap() {
State::Connected(_) => return Ok(()),
State::Error(_) => return Err(Error::CommandFailed("connect")),