Selector
Structure
{
"type": "selector",
"tag": "select",
"outbounds": [
"proxy-a",
"proxy-b",
"proxy-c"
],
"providers": [
"provider-a",
"provider-b",
"provider-c",
],
"use_all_providers": false,
"default": "proxy-c",
"interrupt_exist_connections": false,
... // Filter Fields
}
The selector can only be controlled through the Clash API currently.
You can ignore the JSON Array [] tag when the content is only one item
Fields
outbounds
List of outbound tags to select.
providers
List of providers tags to select.
use_all_providers
Use all providers to fill outbounds
.
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.
Filter Fields
See Filter Fields for details.