mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-26 20:50:30 +08:00
fx: only detect mihomo (#958)
This commit is contained in:
parent
73068f6544
commit
a23e23a697
@ -522,7 +522,7 @@ async function checkHighPrivilegeMihomoProcess(): Promise<boolean> {
|
||||
const processJson = JSON.parse(processInfo)
|
||||
await managerLogger.info(`Process ${pid} info: ${processInfo.substring(0, 200)}`)
|
||||
|
||||
if (processJson.Name === "mihomo" && processJson.Path === null) {
|
||||
if (processJson.Name.includes('mihomo') && processJson.Path === null) {
|
||||
return true
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user