mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 21:20:29 +08:00
fix hosts
This commit is contained in:
parent
5ee45233a8
commit
9af1112103
@ -1,8 +1,4 @@
|
|||||||
### New Features
|
|
||||||
|
|
||||||
- 支持全局快捷键
|
|
||||||
- 添加流量图显
|
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
- 修复Windows托盘菜单重复出现的问题
|
- 修复接管dns后自定义hosts无法删除的问题
|
||||||
|
- 删除退出应用全局快捷键(仅支持应用内CommandOrCtrl+Q退出)
|
||||||
|
|||||||
@ -36,6 +36,9 @@ export async function patchControledMihomoConfig(patch: Partial<IMihomoConfig>):
|
|||||||
controledMihomoConfig.sniffer = defaultControledMihomoConfig.sniffer
|
controledMihomoConfig.sniffer = defaultControledMihomoConfig.sniffer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (patch.hosts) {
|
||||||
|
controledMihomoConfig.hosts = patch.hosts
|
||||||
|
}
|
||||||
controledMihomoConfig = deepMerge(controledMihomoConfig, patch)
|
controledMihomoConfig = deepMerge(controledMihomoConfig, patch)
|
||||||
if (!useNameserverPolicy) {
|
if (!useNameserverPolicy) {
|
||||||
delete controledMihomoConfig?.dns?.['nameserver-policy']
|
delete controledMihomoConfig?.dns?.['nameserver-policy']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user