fx: only detect mihomo (#958)

This commit is contained in:
Memory 2025-08-15 13:56:59 +08:00 committed by GitHub
parent 73068f6544
commit a23e23a697
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {