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
+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")