use mihomo traffic

This commit is contained in:
pompurin404 2024-09-29 16:27:40 +08:00
parent c494907b19
commit 8edc9673d8
No known key found for this signature in database
3 changed files with 6 additions and 2 deletions

View File

@ -2,8 +2,12 @@
- Windows 允许添加 `noadmin` 参数以普通权限启动程序
- 支持在 Windows 任务栏显示网速信息
- 优化 fixed 节点 unfixed 速度
- 支持在关机前自动关闭系统代理
- 支持禁用外部控制端口
### Bug Fixes
- 再次修复便携版自动更新失败的问题
- 修复 url 在软件窗口内打开的问题
- 限制实时日志最大行数

View File

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

View File

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