1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 13:16:47 +00:00

fix: refine clash pattern matching for data protection and improve spinner handling

This commit is contained in:
tw93
2026-02-01 09:28:49 +08:00
parent 7e2c8d24fa
commit 82d46ee286
2 changed files with 20 additions and 11 deletions

View File

@@ -280,9 +280,18 @@ readonly DATA_PROTECTED_BUNDLES=(
"com.telerik.Fiddler"
"com.usebruno.app"
# Network Proxy & VPN Tools
"*clash*"
"*Clash*"
# Network Proxy & VPN Tools (Clash variants - use specific patterns to avoid false positives)
"com.clash.*"
"ClashX*"
"clash-*"
"Clash-*"
"*-clash"
"*-Clash"
"clash.*"
"Clash.*"
"clash_*"
"clashverge*"
"ClashVerge*"
"com.nssurge.surge-mac"
"*surge*"
"*Surge*"
@@ -678,10 +687,10 @@ should_protect_data() {
com.sublimetext.* | com.sublimehq.* | Cursor | Claude | ChatGPT | Ollama)
return 0
;;
com.nssurge.* | com.v2ray.* | ClashX* | Surge* | Shadowrocket* | Quantumult*)
com.nssurge.* | com.v2ray.* | com.clash.* | ClashX* | Surge* | Shadowrocket* | Quantumult*)
return 0
;;
*clash* | *Clash*)
clash-* | Clash-* | *-clash | *-Clash | clash.* | Clash.* | clash_* | clashverge* | ClashVerge*)
return 0
;;
com.docker.* | com.getpostman.* | com.insomnia.*)