diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2018-10-05 11:20:09 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2018-10-05 15:50:40 +0200 |
| commit | 5cf09ec693285d9cfa947ce794b900645ca16e54 (patch) | |
| tree | fe1bf132a1e29a3776059b8e32b1ee1484dd58be /mullvad-cli/src | |
| parent | 3e33f9dcfbdf9ac24ef222a12868798cf9f22cf8 (diff) | |
| download | mullvadvpn-5cf09ec693285d9cfa947ce794b900645ca16e54.tar.xz mullvadvpn-5cf09ec693285d9cfa947ce794b900645ca16e54.zip | |
Don't rely on exit ip in relay_list
Instead, show the hostname in the UI
Diffstat (limited to 'mullvad-cli/src')
| -rw-r--r-- | mullvad-cli/src/cmds/status.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mullvad-cli/src/cmds/status.rs b/mullvad-cli/src/cmds/status.rs index 06d75380aa..11e436d34a 100644 --- a/mullvad-cli/src/cmds/status.rs +++ b/mullvad-cli/src/cmds/status.rs @@ -58,11 +58,13 @@ fn print_location(rpc: &mut DaemonRpcClient) -> Result<()> { } else { format!("{}", location.country) }; + if let Some(hostname) = location.hostname { + println!("Relay: {}", hostname); + } println!("Location: {}", city_and_country); println!( "Position: {:.5}°N, {:.5}°W", location.latitude, location.longitude ); - println!("IP: {}", location.ip); Ok(()) } |
