English
Groups
Ours: the modules/routing/group module (options.rs, lib.rs, probe.rs, spread.rs, interrupt.rs), parsing members — crates/native-config/src/entity.rs (group_members, group). The reference: protocol/group/selector.go, urltest.go of sing-box v1.14.4; Xray's balancers and observatory.
Correspondence
| Reference | Ours |
|---|---|
selector (outbounds, default, interrupt_exist_connections) | rank: manual (default), interrupt_exist_connections |
urltest (url, interval, tolerance, idle_timeout) | rank: delay with probe |
Clash fallback | rank: order (+ recovery) |
Clash load-balance, Xray random/roundRobin | order + pick: all + spread |
Xray leastPing | delay |
Xray leastLoad (expected, baselines, costs, tolerance) | stable (pick, samples, max_failures) — partial |
Divergences
| What | Status | Where | Verdict |
|---|---|---|---|
A manual choice in a group with probes (Clash url-test with pinning) | no: the group chooses by … itself | modules/routing/group/src/lib.rs (select) | rarely needed |
| Choosing separately for TCP and UDP | present: as in the reference (selectedOutboundTCP/UDP): probes over TCP, the UDP choice skips members without UDP | modules/routing/group/src/probe.rs | — |
| The probe | different: HTTP(S) HEAD to a URL with a 15 s timeout, no more than 10 at once per group; no Clash unified delay | modules/routing/group/src/probe.rs | rarely needed |
Xray's balancer fallbackTag | no | modules/config/subscriptions/src/xray.rs (balancer_rank) | missing: the counterpart is an order group on top |
Clash exclude-filter, filter, use (providers) in groups | no on import | modules/config/subscriptions/src/clash.rs | rarely needed: we have filters at the subscription level |
| Saving the choice | different: the manual choice is kept in cache_file by the group's name; the Clash API's store_selected is always on if the cache is enabled | modules/routing/group/src/lib.rs (attach_services) | — |
| An empty group | different: allowed only for groups from subscriptions (allow_empty is set by the loader) | crates/native-config/src/entity.rs (group) | — (design) |
Beyond the reference
pick greater than 1 and spread (hash, sticky, round-robin, random), stable with max_failures, recovery, patterns in members, groups as members of groups with cycle checks, inheriting the manual choice across a reload (inherit_selection).
Importing Xray balancers and Clash groups: subscriptions. Build errors of a group: configuration format.