Selector
An outbound group whose member a person chooses through an API, for example the Clash API's PUT /proxies/{name}.
Structure
json
{
"tag": "proxy",
"protocol": {
"type": "selector",
"settings": { "members": ["auto", "server-a", "server-b"] }
}
}Fields
members
list of tagsRequired
The outbounds a person may choose, by tag. A member may be another group, including another selector. The first is used at start.
How it behaves
- It never measures and never switches by itself.
checkrefusesprobeandtolerance, and warns when noapisentry exists to change it. - The choice is not saved: every start begins on the first member.
- When the chosen member fails, the connection fails.
- A switch closes the live connections that went through the previous member, when
stats.trackingis on. Otherwise only new connections move.