mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 11:42:19 +08:00
support yaml anchor
This commit is contained in:
parent
f7f8dc188a
commit
85a324b428
|
@ -111,7 +111,7 @@ function getRuntimeConfigStr(): string {
|
|||
return fs.readFileSync(mihomoWorkConfigPath(), 'utf8')
|
||||
}
|
||||
|
||||
function getRuntimeConfig(): Record<string, unknown> {
|
||||
function getRuntimeConfig(): IMihomoConfig {
|
||||
return yaml.parse(getRuntimeConfigStr())
|
||||
}
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@ const Proxies: React.FC = () => {
|
|||
const groups: IMihomoGroup[] = []
|
||||
if (proxies && proxies.proxies) {
|
||||
runtime?.['proxy-groups']?.forEach((group: { name: string; url?: string }) => {
|
||||
group = Object.assign(group, group['<<'])
|
||||
const { name, url } = group
|
||||
if (
|
||||
proxies.proxies[name] &&
|
||||
|
|
Loading…
Reference in New Issue
Block a user