From 7a379d3dcc51989aa5dde9908a7309d4ca7c75dc Mon Sep 17 00:00:00 2001 From: Tw93 Date: Mon, 24 Nov 2025 15:24:06 +0800 Subject: [PATCH] Enhance the protection of OpenVPN --- bin/clean.sh | 2 +- lib/common.sh | 3 +++ mole | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/clean.sh b/bin/clean.sh index 4cb05d5..edb9676 100755 --- a/bin/clean.sh +++ b/bin/clean.sh @@ -276,7 +276,7 @@ safe_clean() { # Hard-coded protection for critical apps (cannot be disabled by user) case "$path" in - *clash* | *Clash* | *surge* | *Surge* | *mihomo*) + *clash* | *Clash* | *surge* | *Surge* | *mihomo* | *openvpn* | *OpenVPN*) skip=true ((skipped_count++)) ;; diff --git a/lib/common.sh b/lib/common.sh index 370f50e..9447a2c 100755 --- a/lib/common.sh +++ b/lib/common.sh @@ -1378,6 +1378,9 @@ readonly DATA_PROTECTED_BUNDLES=( "*Clash*" # Capitalized variants "com.nssurge.surge-mac" # Surge "mihomo*" # Mihomo Party and variants + "*openvpn*" # OpenVPN Connect and variants + "*OpenVPN*" # OpenVPN capitalized variants + "net.openvpn.*" # OpenVPN bundle IDs # ============================================================================ # Development Tools - Git & Version Control diff --git a/mole b/mole index 4df3df8..b0e599d 100755 --- a/mole +++ b/mole @@ -22,7 +22,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" source "$SCRIPT_DIR/lib/common.sh" # Version info -VERSION="1.10.10" +VERSION="1.10.11" MOLE_TAGLINE="can dig deep to clean your Mac." # Check if Touch ID is already configured