diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2019-03-25 11:19:27 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2019-03-26 12:36:31 +0100 |
| commit | 4b2841c9dfc75a513f99cd9695fc27977699cc91 (patch) | |
| tree | 1cbda717667c2d569ebfea2bfb14f39e210131c2 /mullvad-cli/src | |
| parent | 0d95132e5ab6eb072ede73e901d783eaef12cad1 (diff) | |
| download | mullvadvpn-4b2841c9dfc75a513f99cd9695fc27977699cc91.tar.xz mullvadvpn-4b2841c9dfc75a513f99cd9695fc27977699cc91.zip | |
Send two GeoIP lookups, one over each IPv
Diffstat (limited to 'mullvad-cli/src')
| -rw-r--r-- | mullvad-cli/src/cmds/status.rs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/mullvad-cli/src/cmds/status.rs b/mullvad-cli/src/cmds/status.rs index b1fb696b7f..29ce0d2c6d 100644 --- a/mullvad-cli/src/cmds/status.rs +++ b/mullvad-cli/src/cmds/status.rs @@ -78,14 +78,20 @@ fn print_location(rpc: &mut DaemonRpcClient) -> Result<()> { return Ok(()); } }; + if let Some(hostname) = location.hostname { + println!("Relay: {}", hostname); + } + if let Some(ipv4) = location.ipv4 { + println!("IPv4: {}", ipv4); + } + if let Some(ipv6) = location.ipv6 { + println!("IPv6: {}", ipv6); + } let city_and_country = if let Some(city) = location.city { format!("{}, {}", city, location.country) } else { - format!("{}", location.country) + location.country.clone() }; - if let Some(hostname) = location.hostname { - println!("Relay: {}", hostname); - } println!("Location: {}", city_and_country); println!( "Position: {:.5}°N, {:.5}°W", |
