summaryrefslogtreecommitdiffhomepage
path: root/mullvad-cli/src
diff options
context:
space:
mode:
authorMarkus Pettersson <markus.pettersson@mullvad.net>2024-06-18 11:35:41 +0200
committerMarkus Pettersson <markus.pettersson@mullvad.net>2024-06-20 13:04:40 +0200
commit751026be2029636e491b6c8d22b979a33fa7cec1 (patch)
tree19cccc1f2add8354813da929f63eaa46444240f4 /mullvad-cli/src
parent397d094c516802e39a34282bf58a1121b85bcace (diff)
downloadmullvadvpn-751026be2029636e491b6c8d22b979a33fa7cec1.tar.xz
mullvadvpn-751026be2029636e491b6c8d22b979a33fa7cec1.zip
Add `PrepareRestartv2` gRPC call
- Add option to automatically shutdown daemon on after running through the same safety routine as `PrepareRestart`. This is exposed via a new gRPC call called `PrepareRestartV2`. - Add help text for enabling full disk access to the CLI
Diffstat (limited to 'mullvad-cli/src')
-rw-r--r--mullvad-cli/src/format.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/mullvad-cli/src/format.rs b/mullvad-cli/src/format.rs
index 0d6ea0b0c0..6b092e8939 100644
--- a/mullvad-cli/src/format.rs
+++ b/mullvad-cli/src/format.rs
@@ -225,6 +225,21 @@ fn print_error_state(error_state: &ErrorState) {
println!("Blocked: {cause}");
println!("Your kernel might be terribly out of date or missing nftables");
}
+ #[cfg(target_os = "macos")]
+ cause @ talpid_types::tunnel::ErrorStateCause::NeedFullDiskPermissions => {
+ println!("Blocked: {cause}");
+ println!();
+ println!(
+ r#"Enable "Full Disk Access" for "Mullvad VPN" in the macOS system settings:"#
+ );
+ println!(
+ r#"open "x-apple.systempreferences:com.apple.preference.security?Privacy_AllFiles""#
+ );
+ println!();
+ println!("Restart the Mullvad daemon for the change to take effect:");
+ println!("launchctl unload -w /Library/LaunchDaemons/net.mullvad.daemon.plist");
+ println!("launchctl load -w /Library/LaunchDaemons/net.mullvad.daemon.plist");
+ }
talpid_types::tunnel::ErrorStateCause::AuthFailed(Some(auth_failed)) => {
println!(
"Blocked: Authentication with remote server failed: {}",