diff --git a/src/main/utils/template.ts b/src/main/utils/template.ts index f0ff1d2..f9f404c 100644 --- a/src/main/utils/template.ts +++ b/src/main/utils/template.ts @@ -56,7 +56,8 @@ export const defaultConfig: IAppConfig = { showRedirPort: 0, enableRedirPort: false, showTproxyPort: 0, - enableTproxyPort: false + enableTproxyPort: false, + testProfileOnStart: true } export const defaultControledMihomoConfig: Partial = { diff --git a/src/renderer/src/components/settings/mihomo-config.tsx b/src/renderer/src/components/settings/mihomo-config.tsx index 1ab9eea..067fb64 100644 --- a/src/renderer/src/components/settings/mihomo-config.tsx +++ b/src/renderer/src/components/settings/mihomo-config.tsx @@ -21,6 +21,7 @@ const MihomoConfig: React.FC = () => { delayTestTimeout, githubToken = '', autoCloseConnection = true, + testProfileOnStart = true, pauseSSID = [], delayTestUrl, userAgent, @@ -228,6 +229,25 @@ const MihomoConfig: React.FC = () => { }} /> + + + + } + divider + > + { + patchAppConfig({ testProfileOnStart: v }) + }} + /> + {pauseSSIDInput.join('') !== pauseSSID.join('') && (