diff --git a/changelog.md b/changelog.md index de16231..6a22651 100644 --- a/changelog.md +++ b/changelog.md @@ -2,8 +2,12 @@ - Windows 允许添加 `noadmin` 参数以普通权限启动程序 - 支持在 Windows 任务栏显示网速信息 +- 优化 fixed 节点 unfixed 速度 - 支持在关机前自动关闭系统代理 +- 支持禁用外部控制端口 ### Bug Fixes - 再次修复便携版自动更新失败的问题 +- 修复 url 在软件窗口内打开的问题 +- 限制实时日志最大行数 diff --git a/src/main/index.ts b/src/main/index.ts index d12d0a4..5b32258 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -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 diff --git a/src/main/utils/init.ts b/src/main/utils/init.ts index 4fb758d..b71eea6 100644 --- a/src/main/utils/init.ts +++ b/src/main/utils/init.ts @@ -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 { if (!existsSync(dataDir())) { @@ -224,7 +223,6 @@ export async function init(): Promise { await cleanup() await startPacServer() await startSubStoreServer() - await startMonitor() const { sysProxy } = await getAppConfig() await triggerSysProxy(sysProxy.enable) await startSSIDCheck()