mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 21:20:29 +08:00
Compare commits
No commits in common. "e20e46aebe0d4a87c8101db4305b5a56d26f4961" and "73068f65440049571223e4ecc6aa5e4fdf75e1c1" have entirely different histories.
e20e46aebe
...
73068f6544
@ -226,7 +226,7 @@ function parseFilename(str: string): string {
|
||||
|
||||
// subscription-userinfo: upload=1234; download=2234; total=1024000; expire=2218532293
|
||||
function parseSubinfo(str: string): ISubscriptionUserInfo {
|
||||
const parts = str.split(/\s*;\s*/)
|
||||
const parts = str.split('; ')
|
||||
const obj = {} as ISubscriptionUserInfo
|
||||
parts.forEach((part) => {
|
||||
const [key, value] = part.split('=')
|
||||
|
||||
@ -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.includes('mihomo') && processJson.Path === null) {
|
||||
if (processJson.Name === "mihomo" && processJson.Path === null) {
|
||||
return true
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user