summaryrefslogtreecommitdiffhomepage
path: root/mullvad-cli/src/cmds
diff options
context:
space:
mode:
authorSebastian Holmin <sebastian.holmin@mullvad.net>2023-12-18 12:12:17 +0100
committerJonathan <jonathan@mullvad.net>2023-12-21 13:33:59 +0100
commita9e75d44832865eff883f1efdb914e261de27cd5 (patch)
tree775a88f36f832030053f91462f36a0eade5427cf /mullvad-cli/src/cmds
parent72a22cf7d00dffdc99e4b2ae26a713416a2ed735 (diff)
downloadmullvadvpn-a9e75d44832865eff883f1efdb914e261de27cd5.tar.xz
mullvadvpn-a9e75d44832865eff883f1efdb914e261de27cd5.zip
Handle am.i.mullvad.net with internal daemon event
Add `geoip::GeoIpHandler`, which sends an `InternalDaemonEvent::LocationEvent` when the location arrives. It also handles aborting in-flight requests and retries.
Diffstat (limited to 'mullvad-cli/src/cmds')
-rw-r--r--mullvad-cli/src/cmds/status.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/mullvad-cli/src/cmds/status.rs b/mullvad-cli/src/cmds/status.rs
index f833868516..5bed82b4c0 100644
--- a/mullvad-cli/src/cmds/status.rs
+++ b/mullvad-cli/src/cmds/status.rs
@@ -18,7 +18,6 @@ pub struct StatusArgs {
#[arg(long, short = 'v')]
verbose: bool,
- // TODO: changelog about removing location flag
/// Enable debug output
#[arg(long, short = 'd')]
debug: bool,
@@ -36,7 +35,7 @@ impl Status {
} else {
// When we enter the connected or disconnected state, am.i.mullvad.net will
// be polled to get IP information. When it arrives, we will get another
- // tunnel state of the same enum type, but with the IP filled in. This
+ // tunnel state of the same enum type, but with the IP filled in. This
// match statement checks for duplicate tunnel states and skips the second
// print to avoid spamming the user.
match (&previous_tunnel_state, &new_state) {
@@ -92,7 +91,6 @@ pub async fn handle(cmd: Option<Status>, args: StatusArgs) -> Result<()> {
if args.debug {
println!("Tunnel state: {state:#?}");
} else {
- // TODO: respect location arg?
format::print_state(&state, args.verbose);
format::print_location(&state);
}