Compare commits

..

No commits in common. "e20e46aebe0d4a87c8101db4305b5a56d26f4961" and "73068f65440049571223e4ecc6aa5e4fdf75e1c1" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ function parseFilename(str: string): string {
// subscription-userinfo: upload=1234; download=2234; total=1024000; expire=2218532293 // subscription-userinfo: upload=1234; download=2234; total=1024000; expire=2218532293
function parseSubinfo(str: string): ISubscriptionUserInfo { function parseSubinfo(str: string): ISubscriptionUserInfo {
const parts = str.split(/\s*;\s*/) const parts = str.split('; ')
const obj = {} as ISubscriptionUserInfo const obj = {} as ISubscriptionUserInfo
parts.forEach((part) => { parts.forEach((part) => {
const [key, value] = part.split('=') const [key, value] = part.split('=')

View File

@ -522,7 +522,7 @@ async function checkHighPrivilegeMihomoProcess(): Promise<boolean> {
const processJson = JSON.parse(processInfo) const processJson = JSON.parse(processInfo)
await managerLogger.info(`Process ${pid} info: ${processInfo.substring(0, 200)}`) 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 return true
} }
} catch (error) { } catch (error) {