2022-08-24 13:02:28 +00:00
|
|
|
### 结构
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
2022-08-31 05:21:29 +00:00
|
|
|
"type": "selector",
|
|
|
|
"tag": "select",
|
|
|
|
|
2022-08-24 13:02:28 +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-08-24 13:02:28 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2023-11-09 09:04:08 +00:00
|
|
|
!!! quote ""
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
选择器目前只能通过 [Clash API](/zh/configuration/experimental#clash-api) 来控制。
|
|
|
|
|
|
|
|
### 字段
|
|
|
|
|
|
|
|
#### outbounds
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
|
|
|
用于选择的出站标签列表。
|
|
|
|
|
|
|
|
#### default
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
默认的出站标签。默认使用第一个出站。
|
2023-09-14 16:07:07 +00:00
|
|
|
|
|
|
|
#### interrupt_exist_connections
|
|
|
|
|
|
|
|
当选定的出站发生更改时,中断现有连接。
|
|
|
|
|
|
|
|
仅入站连接受此设置影响,内部连接将始终被中断。
|