summaryrefslogtreecommitdiffhomepage
path: root/mullvad-setup/src/main.rs
AgeCommit message (Collapse)AuthorFilesLines
2025-07-10Run `cargo fmt`Sebastian Holmin1-2/+2
2025-06-19Add start-service command to mullvad-setup on WindowsDavid Lönnhager1-0/+28
2025-02-18Unify daemon app version typesKalle Lindström1-7/+6
Previously we had two types in the code base that dealt with version parsing. This commit unifies these types so that we only use the Version struct that is defines in the mullvad-version crate. This also solves a bug where the daemon code would crash on alpha versions, as the previous version parsing code didn't handle them.
2025-01-02Remove global API endpointEmīls1-4/+5
2024-12-02Remove DNS fallback except for conncheckDavid Lönnhager1-2/+2
2024-11-22Add non-blocking DNS resolver for Android API requestsDavid Lönnhager1-2/+2
2024-10-01Rename account "token" to account "number"Joakim Hulthe1-1/+1
2024-08-27Use std LazyLock instead of once_cell LazyDavid Lönnhager1-4/+3
2024-02-27Replace err_derive with thiserrorJoakim Hulthe1-22/+21
`err_derive` is unmaintained and will probably stop working with rust edition 2024. `thiserror` is almost a drop-in replacement. This commit simply replaces all occurences of `derive(err_derive::Error)` with `derive(thiserror::Error)` and fixes the attributes, but the Error and Display impls should be identical.
2024-02-19Fix redundant importsDavid Lönnhager1-1/+1
2024-02-16Refactor API access methodsDavid Lönnhager1-1/+1
2024-02-15Swap out `talpid-core` for `talpid-future`Markus Pettersson1-6/+5
2024-02-15Fix off-by-one error when choosing access method candidatesMarkus Pettersson1-7/+2
2024-01-08Remove `ApiEndpointUpdateHandler`Markus Pettersson1-1/+0
Previously, the `mullvad-api` would tell the `mullvad-daemon` that it wanted a new API endpoint by calling a certain callback (`ApiEndpointUpdateCallback`), which would asynchronously resolve a new API endpoint and tell the daemon to punch an appropriate hole in the firewall for that particular endpoint before the `mullvad-api` crate would consume it. The logic of the callback can be moved inside `AccessModeSelector`, which simplifies the contract between `mullvad-daemon` and `mullvad-api` somewhat.
2023-09-19Simplify immediate retry strategyDavid Lönnhager1-6/+4
2023-08-04Replace all use of `lazy_static` with `once_cell`Markus Pettersson1-4/+3
To align more with the upcoming standardizations within the Rust ecosystem which started with the release of `1.70.0` and the inevitable deprecation of `lazy_static`.
2023-06-28Do not consider removing a revoked device to be an error.Markus Pettersson1-4/+13
Sometimes when removing a device when uninstalling the app, a `404` is returned if the device has already been revoked from the account. However, removing a non-existent device should not be considered an error if the end goal is to not have the device on the account. That goal has clearly already been achieved.
2023-05-03Update CLI for mullvad-setupDavid Lönnhager1-33/+30
2023-05-03And gRPC interface wrapper and refactor CLI to use clap derive instead of ↵David Lönnhager1-6/+6
the builder
2023-02-08Make async fns without awaits into regular fnsLinus Färnstrand1-2/+2
2022-11-21Always return the correct settings path on Windows in mullvad_pathsDavid Lönnhager1-19/+1
2022-11-07Split up talpid-coreEmīls Piņķis1-4/+7
2022-10-10Adapt all crates to use mullvad-versionLinus Färnstrand1-4/+2
2022-06-21Fix the large majority of clippy warningsJonathan1-3/+3
This commit fixes most of the remaining clippy warnings in the codebase. These warnings were the more semantically difficult ones to fix. There are some warnings that remain from the rebase that will be fixed in the upcoming PR.
2022-05-12Distinguish between logged-out and revoked device statesDavid Lönnhager1-2/+2
2022-05-05Hide private device type in `mullvad-daemon`David Lönnhager1-1/+1
2022-03-23Rename `mullvad_api::MullvadRpcRuntime` to `mullvad_api::Runtime`David Lönnhager1-3/+3
2022-03-23Rename mullvad-rpc to mullvad-apiDavid Lönnhager1-4/+4
2022-03-14Delete device cache in mullvad-setupDavid Lönnhager1-2/+2
2022-03-14Rename wireguard key removal functionDavid Lönnhager1-7/+7
2022-03-14Implement device conceptDavid Lönnhager1-35/+37
2022-03-01Add proxy config generator to daemonDavid Lönnhager1-4/+12
2022-03-01Remove API address rotationDavid Lönnhager1-1/+1
2022-02-17Allow initializing firewall without argsEmīls1-10/+5
2022-02-14Upgrade clap to 3.0David Lönnhager1-16/+12
2021-12-10Rework firewall exclusion rulesEmīls1-1/+1
2021-12-10Add custom resolverEmīls1-0/+2
2021-12-02Make initial allowed endpoint mandatoryDavid Lönnhager1-3/+2
2021-11-26Don't pass tokio runtime handles to async functionsDavid Lönnhager1-8/+3
2021-10-28Set address change listener after TSM has spawnedDavid Lönnhager1-1/+0
2021-10-01Only retry for network-related API request failures, and remove the delayDavid Lönnhager1-1/+4
2021-10-01Add retries to mullvad-setupDavid Lönnhager1-6/+18
2021-10-01Retry key removals when switching between accounts or doing factoryDavid Lönnhager1-1/+1
reset
2021-06-18Rename 'mullvad-setup clear-history' to 'mullvad-setup remove-wireguard-key'David Lönnhager1-3/+4
2021-06-18Remove WireGuard data from settings in 'mullvad-setup clear-history'David Lönnhager1-19/+9
2021-06-18Store the WireGuard key in the settings and store a single token in the ↵David Lönnhager1-27/+40
account history
2021-03-18Abort uninstaller if prepare-restart failsDavid Lönnhager1-1/+11
2021-01-12Replace the old cache directoryDavid Lönnhager1-7/+7
2021-01-04Unblock API endpoint while connecting or blockedDavid Lönnhager1-1/+2
2021-01-04Add address change listener to AddressCacheDavid Lönnhager1-0/+1