mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-15 19:22:31 +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…
Reference in New Issue
Block a user