---
url: /configuration/outbound/selector.md
description: 手动选择成员的出站分组
---

# selector

保持当前选择，直到通过配置或 API 选择另一个成员。

```yaml check
outbounds:
  direct:
    type: direct
  proxy:
    type: socks
    server: proxy.example:1080
  choose:
    type: selector
    outbounds: [direct, proxy]
    default: direct

route:
  final: choose

dns:
  servers:
    default: {type: udp, address: 127.0.0.1:53}
  final: default
```

## 字段

### type

* 类型：字符串。
* 必填：是，第一项。
* 取值：`selector`。

### default

* 类型：出站名。
* 默认：第一个成员。
* 限制：必须指向最终成员之一。

## 说明

成员收集以及 `hidden`、`icon`、过滤、空分组行为见[公共分组字段](/configuration/outbound/#公共分组字段)。selector 默认不主动探测；手动选择和 API 选择会保存在缓存中。

## 相关

* [出站总览](/configuration/outbound/)
* [API](/configuration/api)
