Selector
Structure
{
"type": "selector",
"tag": "select",
"outbounds": [
"proxy-a",
"proxy-b",
"proxy-c"
],
"default": "proxy-c",
"interrupt_exist_connections": false,
"prefer_domain": true
}
The selector can only be controlled through the Clash API currently.
Fields
outbounds
Required
List of outbound tags to select.
default
The default outbound tag. The first outbound will be used if empty.
interrupt_exist_connections
Interrupt existing connections when the selected outbound has changed.
Only inbound connections are affected by this setting, internal connections will always be interrupted.
prefer_domain
Same as the prefer_domain option in dial fields.
When enabled on a group outbound, the IP destination is overridden with the sniffed domain name before the connection is handed to the selected child outbound.