diff options
| author | Joakim Hulthe <joakim@hulthe.net> | 2024-03-21 15:08:47 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2024-03-27 10:44:31 +0100 |
| commit | 6ff9fe1733eb2db607c06644dc12b3bbf47972d8 (patch) | |
| tree | f1be91ebd15dc45ccccb7c607b12d76ef381cd5f | |
| parent | 0317724fa86cd6b734c9688fa25640e37e0d429a (diff) | |
| download | mullvadvpn-6ff9fe1733eb2db607c06644dc12b3bbf47972d8.tar.xz mullvadvpn-6ff9fe1733eb2db607c06644dc12b3bbf47972d8.zip | |
Warn when running --launch-daemon-status on dev
| -rw-r--r-- | mullvad-daemon/src/main.rs | 4 | ||||
| -rw-r--r-- | mullvad-daemon/src/version.rs | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/mullvad-daemon/src/main.rs b/mullvad-daemon/src/main.rs index a8f4d6ecc4..335afb7fe0 100644 --- a/mullvad-daemon/src/main.rs +++ b/mullvad-daemon/src/main.rs @@ -83,6 +83,10 @@ fn run() -> Result<(), String> { #[cfg(target_os = "macos")] cli::Command::LaunchDaemonStatus => { + if version::is_dev_version() { + eprintln!("Note: This command may not work on non-notarized builds."); + } + std::process::exit(macos_launch_daemon::get_status() as i32); } } diff --git a/mullvad-daemon/src/version.rs b/mullvad-daemon/src/version.rs index 19e6dfa134..db3d9db5d3 100644 --- a/mullvad-daemon/src/version.rs +++ b/mullvad-daemon/src/version.rs @@ -5,6 +5,10 @@ pub fn is_beta_version() -> bool { mullvad_version::VERSION.contains("beta") } +pub fn is_dev_version() -> bool { + mullvad_version::VERSION.contains("dev") +} + pub fn log_version() { log::info!( "Starting {} - {} {}", |
