diff options
| author | Emīls <emils@mullvad.net> | 2020-03-26 12:08:15 +0000 |
|---|---|---|
| committer | Emīls Piņķis <emils@mullvad.net> | 2020-04-27 11:17:00 +0100 |
| commit | 4841fdd9d174314a7e3d6aaeed781915367f841a (patch) | |
| tree | 13636cfd6328a90c456dec20e8959718a0e78ad6 | |
| parent | 4b8d77e579793d4cff93fb75ca8120e33d282d96 (diff) | |
| download | mullvadvpn-4841fdd9d174314a7e3d6aaeed781915367f841a.tar.xz mullvadvpn-4841fdd9d174314a7e3d6aaeed781915367f841a.zip | |
Use new VersionInfo format
| -rw-r--r-- | mullvad-cli/src/cmds/version.rs | 2 | ||||
| -rw-r--r-- | mullvad-types/src/version.rs | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/mullvad-cli/src/cmds/version.rs b/mullvad-cli/src/cmds/version.rs index 99df7b6d19..606ad4972c 100644 --- a/mullvad-cli/src/cmds/version.rs +++ b/mullvad-cli/src/cmds/version.rs @@ -17,7 +17,7 @@ impl Command for Version { let current_version = rpc.get_current_version()?; println!("Current version: {}", current_version); let version_info = rpc.get_version_info()?; - println!("\tIs supported: {}", version_info.current_is_supported); + println!("\tIs supported: {}", version_info.supported); let settings = rpc.get_settings()?; let is_updated = if settings.show_beta_releases.unwrap_or(false) { diff --git a/mullvad-types/src/version.rs b/mullvad-types/src/version.rs index 5cb66fd50e..1603c7752b 100644 --- a/mullvad-types/src/version.rs +++ b/mullvad-types/src/version.rs @@ -14,11 +14,14 @@ pub struct AppVersionInfo { /// * 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, + pub supported: bool, + /// Latest version + pub latest: AppVersion, + /// Latest stable version 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, + pub latest_beta: AppVersion, } pub type AppVersion = String; |
