We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.9.0
clash转换为singbox配置
"clash_mode": "Global" "clash_mode": "Direct"
默认配置下,singbox配置生成会添加clash mode相关内容,其中singbox路由规则生成时,先生成了clash_mode Global、Direct规则,随后生成protocol dns规则代码。如下:
"route": { "rules": [ { "clash_mode": "Global", "outbound": "GLOBAL" }, { "clash_mode": "Direct", "outbound": "DIRECT" }, { "protocol": "dns", "outbound": "dns-out" },
singbox客户端运行时: 在 Rule 模式下,这样的配置dns解析正常。 在Direct | Global 模式下,这样的配置会导致dns解析不能正确路由。
修复方法:将dns路由规则放在第一条。
subconverter/src/generator/config/ruleconvert.cpp
Lines 543 to 544 in 6974910
这两行代码调整位置即可。(:534)
singbox路由规则前三条应为:
"route": { "rules": [ { "protocol": "dns", "outbound": "dns-out" }, { "clash_mode": "Global", "outbound": "GLOBAL" }, { "clash_mode": "Direct", "outbound": "DIRECT" },
目前版本(v0.9.0)singbox路由规则前三条实际为:
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
确认版本最新
检索issue
subconverter版本
v0.9.0
转换过程
clash转换为singbox配置
转换设置
"clash_mode": "Global"
"clash_mode": "Direct"
复现步骤
默认配置下,singbox配置生成会添加clash mode相关内容,其中singbox路由规则生成时,先生成了clash_mode Global、Direct规则,随后生成protocol dns规则代码。如下:
singbox客户端运行时:
在 Rule 模式下,这样的配置dns解析正常。
在Direct | Global 模式下,这样的配置会导致dns解析不能正确路由。
修复方法:将dns路由规则放在第一条。
subconverter/src/generator/config/ruleconvert.cpp
Lines 543 to 544 in 6974910
这两行代码调整位置即可。(:534)
期望结果
singbox路由规则前三条应为:
实际结果
目前版本(v0.9.0)singbox路由规则前三条实际为:
错误信息
No response
The text was updated successfully, but these errors were encountered: