2022-07-22 06:07:27 +00:00
|
|
|
### Structure
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
2022-08-31 05:21:29 +00:00
|
|
|
"type": "selector",
|
|
|
|
"tag": "select",
|
|
|
|
|
2022-07-22 06:07:27 +00:00
|
|
|
"outbounds": [
|
2022-08-31 05:21:29 +00:00
|
|
|
"proxy-a",
|
|
|
|
"proxy-b",
|
|
|
|
"proxy-c"
|
|
|
|
],
|
2023-09-14 16:07:07 +00:00
|
|
|
"default": "proxy-c",
|
|
|
|
"interrupt_exist_connections": false
|
2022-07-22 06:07:27 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
!!! error ""
|
|
|
|
|
|
|
|
The selector can only be controlled through the [Clash API](/configuration/experimental#clash-api-fields) currently.
|
|
|
|
|
|
|
|
### Fields
|
|
|
|
|
|
|
|
#### outbounds
|
|
|
|
|
|
|
|
==Required==
|
|
|
|
|
|
|
|
List of outbound tags to select.
|
|
|
|
|
|
|
|
#### default
|
|
|
|
|
2023-09-14 16:07:07 +00:00
|
|
|
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.
|