summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2020-08-24 16:00:51 +0200
committerDavid Lönnhager <david.l@mullvad.net>2020-08-24 18:42:41 +0200
commita8ae4f61461d8effa63e19925cacb154f6e6a6b8 (patch)
treec26f81f58889ab021eeb65c0b2e26c3660f6c469
parentd905354ab40f360aa8f041ef0a157f33fb6efc12 (diff)
downloadmullvadvpn-a8ae4f61461d8effa63e19925cacb154f6e6a6b8.tar.xz
mullvadvpn-a8ae4f61461d8effa63e19925cacb154f6e6a6b8.zip
Add refactoring TODO comment
-rw-r--r--mullvad-cli/src/cmds/relay.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/mullvad-cli/src/cmds/relay.rs b/mullvad-cli/src/cmds/relay.rs
index 2e69a40312..7071db4d45 100644
--- a/mullvad-cli/src/cmds/relay.rs
+++ b/mullvad-cli/src/cmds/relay.rs
@@ -374,6 +374,8 @@ impl Relay {
let mut found = false;
if !location_constraint.country.is_empty() {
+ // TODO: `mullvad_types::relay_constraints::LocationConstraint::matches(&relay)`
+ // could be used to guarantee consistency with the daemon.
let countries = Self::get_filtered_relays().await?;
for country in &countries {
if country.code != location_constraint.country {