fix(proxy-group): prevent PASS-RULE from being filtered out (#7893)

* feat(enhance): add PASS-RULE to BUILTIN_POLICIES

* docs: update changelog
This commit is contained in:
oomeow
2026-09-09 11:22:14 +00:00
committed by GitHub
parent 3253828bf0
commit 78d6f8eeae
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -18,6 +18,7 @@
修复 i18n 清理脚本因导入方式错误而无法运行的问题
修复 Linux 桌面环境下主题切换时应用外观不跟随的问题
修复 Gemini 测试正确性
修复代理组节点 `PASS-RULE` 被过滤丢失的问题
<details>
<summary><strong> ✨ 新增功能 </strong></summary>
+2 -1
View File
@@ -562,7 +562,8 @@ async fn apply_builtin_scripts(mut config: Mapping, clash_core: Option<String>,
}
fn cleanup_proxy_groups(mut config: Mapping) -> Mapping {
const BUILTIN_POLICIES: &[&str] = &["DIRECT", "REJECT", "REJECT-DROP", "PASS"];
// built-in proxies docs: https://wiki.metacubex.one/config/proxies/built-in
const BUILTIN_POLICIES: &[&str] = &["DIRECT", "REJECT", "REJECT-DROP", "PASS", "PASS-RULE"];
let proxy_names = config
.get("proxies")