跳转至

Selector

结构

{
  "type": "selector",
  "tag": "select",

  "outbounds": [
    "proxy-a",
    "proxy-b",
    "proxy-c"
  ],
  "providers": [
    "provider-a"
  ],
  "exclude": "beta",
  "include": "v2ray",
  "use_all_providers": false,
  "default": "proxy-c",
  "interrupt_exist_connections": false
}

选择器目前只能通过 Clash API 来控制。

字段

outbounds

用于选择的出站标签列表。

providers

出站提供者 的标签列表。这些提供者的出站会加入分组。

exclude

过滤掉出站提供者中标签匹配该正则表达式的出站。

include

仅保留出站提供者中标签匹配该正则表达式的出站。

use_all_providers

使用配置中的所有出站提供者。

default

默认的出站标签。默认使用第一个出站。

interrupt_exist_connections

当选定的出站发生更改时,中断现有连接。

仅入站连接受此设置影响,内部连接将始终被中断。