mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 11:42:19 +08:00
use mihomo traffic
This commit is contained in:
parent
c494907b19
commit
8edc9673d8
|
@ -2,8 +2,12 @@
|
|||
|
||||
- Windows 允许添加 `noadmin` 参数以普通权限启动程序
|
||||
- 支持在 Windows 任务栏显示网速信息
|
||||
- 优化 fixed 节点 unfixed 速度
|
||||
- 支持在关机前自动关闭系统代理
|
||||
- 支持禁用外部控制端口
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- 再次修复便携版自动更新失败的问题
|
||||
- 修复 url 在软件窗口内打开的问题
|
||||
- 限制实时日志最大行数
|
||||
|
|
|
@ -16,6 +16,7 @@ import { initProfileUpdater } from './core/profileUpdater'
|
|||
import { existsSync, writeFileSync } from 'fs'
|
||||
import { taskDir } from './utils/dirs'
|
||||
import path from 'path'
|
||||
import { startMonitor } from './resolve/trafficMonitor'
|
||||
|
||||
let quitTimeout: NodeJS.Timeout | null = null
|
||||
export let mainWindow: BrowserWindow | null = null
|
||||
|
@ -130,6 +131,7 @@ app.whenReady().then(async () => {
|
|||
} catch (e) {
|
||||
dialog.showErrorBox('内核启动出错', `${e}`)
|
||||
}
|
||||
await startMonitor()
|
||||
// Default open or close DevTools by F12 in development
|
||||
// and ignore CommandOrControl + R in production.
|
||||
// see https://github.com/alex8088/electron-toolkit/tree/master/packages/utils
|
||||
|
|
|
@ -35,7 +35,6 @@ import {
|
|||
} from '../config'
|
||||
import { app } from 'electron'
|
||||
import { startSSIDCheck } from '../sys/ssid'
|
||||
import { startMonitor } from '../resolve/trafficMonitor'
|
||||
|
||||
async function initDirs(): Promise<void> {
|
||||
if (!existsSync(dataDir())) {
|
||||
|
@ -224,7 +223,6 @@ export async function init(): Promise<void> {
|
|||
await cleanup()
|
||||
await startPacServer()
|
||||
await startSubStoreServer()
|
||||
await startMonitor()
|
||||
const { sysProxy } = await getAppConfig()
|
||||
await triggerSysProxy(sysProxy.enable)
|
||||
await startSSIDCheck()
|
||||
|
|
Loading…
Reference in New Issue
Block a user