mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-26 20:50:30 +08:00
disable external-controller by default
This commit is contained in:
parent
04706eb9de
commit
b16d0186a1
@ -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 {
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user