summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--mullvad-cli/src/cmds/version.rs10
-rw-r--r--mullvad-types/src/version.rs1
2 files changed, 10 insertions, 1 deletions
diff --git a/mullvad-cli/src/cmds/version.rs b/mullvad-cli/src/cmds/version.rs
index ad0df0ad0c..2acde8f76f 100644
--- a/mullvad-cli/src/cmds/version.rs
+++ b/mullvad-cli/src/cmds/version.rs
@@ -18,7 +18,15 @@ impl Command for Version {
println!("Current version: {}", current_version);
let version_info = rpc.get_version_info()?;
println!("\tIs supported: {}", version_info.current_is_supported);
- println!("\tIs up to date: {}", !version_info.current_is_outdated);
+
+ let settings = rpc.get_settings()?;
+ let is_updated = if settings.get_show_beta_releases().unwrap_or(false) {
+ version_info.latest == current_version
+ } else {
+ version_info.latest_stable == current_version
+ };
+ println!("\tIs up to date: {}", is_updated);
+
if version_info.latest_stable != version_info.latest {
println!(
"Latest version: {} (latest stable: {})",
diff --git a/mullvad-types/src/version.rs b/mullvad-types/src/version.rs
index 21fffca04b..e4023ebb36 100644
--- a/mullvad-types/src/version.rs
+++ b/mullvad-types/src/version.rs
@@ -17,6 +17,7 @@ pub struct AppVersionInfo {
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.
+ /// DEPRECATED
pub current_is_outdated: bool,
pub latest_stable: AppVersion,
/// Equal to `latest_stable` when the newest release is a stable release. But will contain