From 72faa1e5c245ca2ff77ca734561ef3ddcd3cac31 Mon Sep 17 00:00:00 2001 From: pompurin404 Date: Wed, 4 Sep 2024 19:59:11 +0800 Subject: [PATCH] 1.2.7 --- changelog.md | 10 +++------- package.json | 2 +- src/main/config/controledMihomo.ts | 4 +++- src/renderer/src/pages/substore.tsx | 4 ++-- src/renderer/src/pages/tun.tsx | 23 +++++++++++++---------- 5 files changed, 22 insertions(+), 21 deletions(-) diff --git a/changelog.md b/changelog.md index 7adef5d..559fc09 100644 --- a/changelog.md +++ b/changelog.md @@ -4,10 +4,6 @@ ### New Features -- 内置 SubStore 服务 -- 记住连接排列顺序 -- 调整样式细节 - -### Bug Fixes - -- 修复编辑器主题错误 +- 支持使用自建Sub-Store后端 +- 深度集成Sub-Store +- 优化延迟测试逻辑 diff --git a/package.json b/package.json index 4f22908..31edac4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mihomo-party", - "version": "1.2.6", + "version": "1.2.7", "description": "Mihomo Party", "main": "./out/main/index.js", "author": "mihomo-party", diff --git a/src/main/config/controledMihomo.ts b/src/main/config/controledMihomo.ts index dff9c71..8fc9b3e 100644 --- a/src/main/config/controledMihomo.ts +++ b/src/main/config/controledMihomo.ts @@ -47,7 +47,9 @@ export async function patchControledMihomoConfig(patch: Partial): if (!useNameserverPolicy) { delete controledMihomoConfig?.dns?.['nameserver-policy'] } - + if (process.platform === 'darwin') { + delete controledMihomoConfig?.tun?.device + } if (patch['external-controller'] || patch.secret) { await getAxios(true) } diff --git a/src/renderer/src/pages/substore.tsx b/src/renderer/src/pages/substore.tsx index e89b0f7..1fe6d87 100644 --- a/src/renderer/src/pages/substore.tsx +++ b/src/renderer/src/pages/substore.tsx @@ -32,7 +32,7 @@ const SubStore: React.FC = () => { variant="light" onPress={() => { open( - `https://sub-store.vercel.app/subs?api=${useCustomSubStore ? customSubStoreUrl : `http://127.0.0.1:${port}`}` + `https://sub-store.vercel.app?api=${useCustomSubStore ? customSubStoreUrl : `http://127.0.0.1:${port}`}` ) }} > @@ -42,7 +42,7 @@ const SubStore: React.FC = () => { >