summaryrefslogtreecommitdiffhomepage
path: root/mullvad-cli/src/cmds/debug.rs
AgeCommit message (Collapse)AuthorFilesLines
2025-11-03Add `mullvad debug rollout` commandMarkus Pettersson1-1/+45
Define `get`, `reroll` and `seed` for quickly inspecting and debugging new app releases.
2025-04-04Implement new debug commands: `relay disable` and `relay enable`Markus Pettersson1-0/+25
Add two new `mullvad debug` subcommands: - mullvad debug relay enable <country|city|hostname|openvpn|wireguard> - mullvad debug relay disable <country|city|hostname|openvpn|wireguard> These commands are used to update the state of relays the current relay list. This is useful to mock relays going offline or coming online from an offline state. These new debug commands were conceived during the development of the feature for adding warnings for the upcoming OpenVPN deprecation, as there wasn't a convenient way of mocking this.
2024-03-27Refactor `mullvad-relay-selector`Markus Pettersson1-1/+4
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.
2024-02-28Make `block-connection` block even if disconnectedJoakim Hulthe1-0/+3
2023-11-23Add `mullvad debug block-connection` commandSebastian Holmin1-0/+40