summaryrefslogtreecommitdiffhomepage
path: root/mullvad-cli/src/cmds/relay_constraints.rs
AgeCommit message (Collapse)AuthorFilesLines
2025-01-22Implement FromStr on GeographicLocationConstraintMarkus Pettersson1-1/+0
2024-03-27Refactor `mullvad-relay-selector`Markus Pettersson1-1/+2
Implement a system built on 'queries' for selecting appropriate relays. A query is a set of constraints which dictates which relay(s) that *can* be chosen by the relay selector. The user's settings can naturally be expressed as a query. The semantics of merging two queries in a way that always prefer user settings is defined by the new `Intersection` trait. Split `mullvad-relay-selector` into several modules: - `query.rs`: Definition of a query on different types of relays. This module is integral to the new API of `mullvad-relay-selector` - `matcher.rs`: Logic for filtering out candidate relays based on a query. - `detailer.rs`: Logic for deriving connection details for the selected relay. - `tests/`: Integration tests for the new relay selector. These tests only use the public APIs of `RelaySelector` and make sure that the output matches the expected output in different scenarios.
2023-11-23Refactor match statementSebastian Holmin1-10/+7
2023-06-29Add settings migration code, refactor and cleanupJonathan1-1/+1
Bump the settings version. Add code for migrating settings to new version since it is now not backwards compatible. Refactor LocationConstraint and related types to be more lean. Cleanup issues and fix formatting. Refactor LocationConstraint and add migration code
2023-06-29Add basic features for custom list and file persistenceJonathan1-6/+26
Create the basic features outside of rename for custom lists and route these to the daemon. Persist custom lists in settings. Has basic custom list features done, adds errors. Adds reconnect in the case where a selected custom list is modified.
2023-05-03And gRPC interface wrapper and refactor CLI to use clap derive instead of ↵David Lönnhager1-0/+34
the builder