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