[Bug] v1.9.2alpha4在使用 mihomo 并开启了 mix 模式时不能通过自定义高级功能添加rule-providers
expliyh opened this issue · 4 comments
expliyh commented
Verify steps
- 我已经在 Issue Tracker 中找过我要提出的问题 I have searched on the issue tracker for a related issue.
- 我已经使用公测版本测试过,问题依旧存在 I have tested using the test mod, and the issue still exists.
- 我已经仔细看过 常见问题 并无法自行解决问题
Description
错误提示:error msg="yaml: unmarshal errors:
line 10447: mapping key "rule-providers" already defined at line 165"
推测是由于 mix 模式向配置文件中插入了一个 rule-providers 导致自定义的 rule-providers 变成了重复的 key,将模式改为fakeip后就不提示了。
expliyh commented
others.yaml
获取Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: juewuy ***@***.***>
Sent: Tuesday, December 10, 2024 11:01:53 AM
To: juewuy/ShellCrash ***@***.***>
Cc: Expliyh ***@***.***>; Mention ***@***.***>
Subject: Re: [juewuy/ShellCrash] [Bug] v1.9.2alpha4在使用 mihomo 并开启了 mix 模式时不能通过自定义高级功能添加rule-providers (Issue #839)
@expliyh<https://github.com/expliyh> 在哪里自定义的?user.yaml还是others.yaml?
―
Reply to this email directly, view it on GitHub<#839 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AM5G6OXFMPUSGUYUB2IVI2L2EZKSDAVCNFSM6AAAAABTJBNKO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMZQGEZTKMJZGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
juewuy commented
使用了自定义rule-providers的用户,如需启用mix模式,需要手动添加如下规则集(二选一)
使用本地规则集:
geosite-cn:
type: file
behavior: domain
format: mrs
path: geosite-cn.mrs
使用在线规则集:
geosite-cn:
type: http
behavior: domain
format: mrs
path: geosite-cn.mrs
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/cn.mrs"
interval: 600