summaryrefslogtreecommitdiffhomepage
path: root/mullvad-daemon/src/version_check.rs
AgeCommit message (Collapse)AuthorFilesLines
2025-05-28Implement new version check and app downloaderDavid Lönnhager1-833/+0
This also fixes 'latest_beta' being required in the API Co-authored-by: Sebastian Holmin <sebastian.holmin@mullvad.net> Co-authored-by: Markus Pettersson <markus.pettersson@mullvad.net>
2025-03-25Move version client to module in mullvad-apiDavid Lönnhager1-21/+16
2025-03-18Remove needsless cloning of objectsLinus Färnstrand1-1/+1
2025-02-18Unify daemon app version typesKalle Lindström1-15/+57
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-02-12Format workspaceSebastian Holmin1-5/+5
The 2024 edition contains new formatting rules. All of these are not compatible with the 2021 formatting style, but most of them are. To change the formatting to be as close to the new style as possible while remaining compatible with the 2021 edition, I first ran `cargo +beta fmt` with the edition set to 2024, then, with the edition set to 2021, I ran `cargo fmt`.
2025-02-12Fix `clippy::precedence`Sebastian Holmin1-6/+9
2025-02-12Run `cargo +beta fix --edition`Sebastian Holmin1-2/+2
2024-09-25Consolidate two mutexes into oneMarkus Pettersson1-4/+4
2024-08-27Use std LazyLock instead of once_cell LazyDavid Lönnhager1-4/+4
2024-04-23Add tests for version checkerDavid Lönnhager1-167/+355
2024-04-23Remove pointless round trip for version checkDavid Lönnhager1-31/+28
2024-04-23Remove some pointless checksDavid Lönnhager1-15/+2
2024-04-17Refactor away Daemon::app_version_infoJoakim Hulthe1-24/+30
2024-04-17Do not query latest version unless staleJoakim Hulthe1-37/+56
2024-04-17Make sure to query app verion every 24 hoursJoakim Hulthe1-55/+120
even if the daemon was restarted.
2024-02-27Replace err_derive with thiserrorJoakim Hulthe1-17/+16
`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-15Swap out `talpid-core` for `talpid-future`Markus Pettersson1-3/+4
2023-10-30Rename REST request factory timeoutDavid Lönnhager1-1/+1
2023-09-19Simplify immediate retry strategyDavid Lönnhager1-7/+5
2023-08-04Replace all use of `lazy_static` with `once_cell`Markus Pettersson1-4/+4
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-07-14Remove `x_threshold_wg_default` codeMarkus Pettersson1-14/+0
Since we migrated to using Wireguard as the definitive default VPN, we can stop reading the `x_threshold_wg_default` field from the API and remove all daemon code related to using it
2022-10-10Fix suggested_upgrade to not special case dev versionsLinus Färnstrand1-15/+11
2022-10-10Adapt all crates to use mullvad-versionLinus Färnstrand1-11/+8
2022-09-27Fix clippy complaintsEmīls Piņķis1-2/+2
2022-08-25Lower wg_migration_threshold to 0.75 in dev buildsLinus Färnstrand1-1/+4
2022-08-15Allow for migrating windows users to WGJonathan1-1/+12
Use a potential value between 0 and 1 provided by the API version check to decide if the Windows client should use WireGuard or OpenVpn. This decision is then persisted in the settings in the form of a random value between 0 and 1 where if the value is higher than the value provided by the API the client will use OpenVpn. If there is no value provided by the API then the client will use WireGuard as the migration has concluded.
2022-07-20Log saner message if version check is run for dev buildsDavid Lönnhager1-1/+21
Also, return fake version info
2022-06-21Fix the large majority of clippy warningsJonathan1-4/+5
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-04-11Refactor long-running timers and use talpid-time for suspend-awareDavid Lönnhager1-18/+4
clocks
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-6/+6
2022-01-11Use ": " as delimiter instead of " - " between messages and valueLinus Färnstrand1-1/+1
2021-11-29Reformat code without blank_lines_upper_bound = 2Linus Färnstrand1-2/+0
2021-10-28Rename background request controlsDavid Lönnhager1-1/+1
2021-10-01Only retry for network-related API request failures, and remove the delayDavid Lönnhager1-2/+14
2021-10-01Give `retry_future_with_backoff` a more general nameDavid Lönnhager1-3/+4
2021-09-28Fix race fetching initial version cacheDavid Lönnhager1-13/+68
2021-09-15Pause automatic RPCs while the account is expired or invalid, and whileDavid Lönnhager1-3/+14
offline
2021-07-13Work around !Unpin on sleep futureDavid Lönnhager1-1/+1
2021-07-13Replace delay_for with sleepDavid Lönnhager1-1/+1
2021-03-31Use only async file I/O in version_checkDavid Lönnhager1-7/+11
2021-02-10Update suggested version when enabling/disabling beta programOskar Nyberg1-51/+71
2021-01-28Rename mullvad-platform-metadataEmīls1-1/+1
2021-01-22Fetch new version info if there is no cacheDavid Lönnhager1-8/+38
2021-01-22Start without version cache instead of using incorrect defaultsDavid Lönnhager1-13/+14
2021-01-05Add getter for redacted OS version and use it in version check headerOskar Nyberg1-1/+1
2021-01-05Add M-Platform-Version header to version check callOskar Nyberg1-1/+9
2020-11-23Parse dev versionsDavid Lönnhager1-5/+7
2020-11-23Move version string parsing to mullvad-typesDavid Lönnhager1-111/+11
2020-09-01Update tunnel state machine event loop and remove tokio 0.1David Lönnhager1-3/+3