diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2019-09-03 13:30:05 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2019-09-09 12:31:33 +0200 |
| commit | b8f4796b7060049ef2c0c91f32a60b33544aa108 (patch) | |
| tree | 6cfc0a9af77aac70227f618f1694adc2651c6e1a | |
| parent | d8a2cffae6005837a2974e60ae78b7d3830123bd (diff) | |
| download | mullvadvpn-b8f4796b7060049ef2c0c91f32a60b33544aa108.tar.xz mullvadvpn-b8f4796b7060049ef2c0c91f32a60b33544aa108.zip | |
Add current_is_outdated flag and AppVersionInfo documentation
| -rw-r--r-- | mullvad-types/src/version.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mullvad-types/src/version.rs b/mullvad-types/src/version.rs index c07e35d5a1..695c686fc4 100644 --- a/mullvad-types/src/version.rs +++ b/mullvad-types/src/version.rs @@ -4,8 +4,19 @@ use serde::{Deserialize, Serialize}; /// Mullvad VPN app. #[derive(Debug, Clone, Serialize, Deserialize)] pub struct AppVersionInfo { + /// False if Mullvad has stopped supporting the currently running version. This could mean + /// a number of things. For example: + /// * API endpoints it uses might not work any more. + /// * Software bundled with this version, such as OpenVPN or OpenSSL, has known security + /// issues, so using it is no longer recommended. + /// The user should really upgrade when this is false. pub current_is_supported: bool, + /// True if there is a newer version that contains any functional differences compared to the + /// running version. User should upgrade if they want the latest features and bugfixes. + pub current_is_outdated: bool, pub latest_stable: AppVersion, + /// Equal to `latest_stable` when the newest release is a stable release. But will contain + /// beta versions when those are out for testing. pub latest: AppVersion, } |
