disable external-controller by default
Some checks failed
Build / windows (arm64) (push) Has been cancelled
Build / windows (ia32) (push) Has been cancelled
Build / windows (x64) (push) Has been cancelled
Build / windows7 (ia32) (push) Has been cancelled
Build / windows7 (x64) (push) Has been cancelled
Build / linux (arm64) (push) Has been cancelled
Build / linux (x64) (push) Has been cancelled
Build / macos (arm64) (push) Has been cancelled
Build / macos (x64) (push) Has been cancelled
Build / aur-git-updater (push) Has been cancelled
Build / updater (push) Has been cancelled
Build / aur-release-updater (mihomo-party) (push) Has been cancelled
Build / aur-release-updater (mihomo-party-bin) (push) Has been cancelled
Build / aur-release-updater (mihomo-party-electron) (push) Has been cancelled
Build / aur-release-updater (mihomo-party-electron-bin) (push) Has been cancelled
Build / Update WinGet Package (push) Has been cancelled
Build / Update Homebrew cask (push) Has been cancelled

This commit is contained in:
pompurin404 2024-09-30 23:18:55 +08:00
parent 563242cc64
commit d6c594775f
No known key found for this signature in database
2 changed files with 5 additions and 0 deletions

View File

@ -153,6 +153,7 @@ async function migration(): Promise<void> {
const {
'external-controller-pipe': externalControllerPipe,
'external-controller-unix': externalControllerUnix,
'external-controller': externalController,
'skip-auth-prefixes': skipAuthPrefixes,
authentication,
'bind-address': bindAddress,
@ -204,6 +205,9 @@ async function migration(): Promise<void> {
'external-controller-pipe': '\\\\.\\pipe\\MihomoParty\\mihomo'
})
}
if (externalController === undefined) {
await patchControledMihomoConfig({ 'external-controller': '' })
}
}
function initDeeplink(): void {

View File

@ -38,6 +38,7 @@ export const defaultConfig: IAppConfig = {
export const defaultControledMihomoConfig: Partial<IMihomoConfig> = {
'external-controller-pipe': '\\\\.pipe\\MihomoParty\\mihomo',
'external-controller-unix': '/tmp/mihomo-party.sock',
'external-controller': '',
ipv6: true,
mode: 'rule',
'mixed-port': 7890,