2022-09-13 11:24:33 +08:00
|
|
|
### 结构
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"type": "vless",
|
|
|
|
"tag": "vless-out",
|
|
|
|
|
|
|
|
"server": "127.0.0.1",
|
|
|
|
"server_port": 1080,
|
|
|
|
"uuid": "bf000d23-0752-40b4-affe-68f7707a9661",
|
2023-02-25 16:24:08 +08:00
|
|
|
"flow": "xtls-rprx-vision",
|
2022-09-13 11:24:33 +08:00
|
|
|
"network": "tcp",
|
|
|
|
"tls": {},
|
|
|
|
"packet_encoding": "",
|
2023-11-08 12:09:22 +08:00
|
|
|
"multiplex": {},
|
2022-09-13 11:24:33 +08:00
|
|
|
"transport": {},
|
|
|
|
|
|
|
|
... // 拨号字段
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### 字段
|
|
|
|
|
|
|
|
#### server
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
|
|
|
服务器地址。
|
|
|
|
|
|
|
|
#### server_port
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
|
|
|
服务器端口。
|
|
|
|
|
|
|
|
#### uuid
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
|
|
|
VLESS 用户 ID。
|
|
|
|
|
2023-02-25 16:24:08 +08:00
|
|
|
#### flow
|
|
|
|
|
|
|
|
VLESS 子协议。
|
|
|
|
|
|
|
|
可用值:
|
|
|
|
|
|
|
|
* `xtls-rprx-vision`
|
|
|
|
|
2022-09-13 11:24:33 +08:00
|
|
|
#### network
|
|
|
|
|
|
|
|
启用的网络协议。
|
|
|
|
|
|
|
|
`tcp` 或 `udp`。
|
|
|
|
|
|
|
|
默认所有。
|
|
|
|
|
|
|
|
#### tls
|
|
|
|
|
|
|
|
TLS 配置, 参阅 [TLS](/zh/configuration/shared/tls/#outbound)。
|
|
|
|
|
|
|
|
#### packet_encoding
|
|
|
|
|
2023-02-28 20:27:30 +08:00
|
|
|
UDP 包编码,默认使用 xudp。
|
|
|
|
|
2022-09-13 11:24:33 +08:00
|
|
|
| 编码 | 描述 |
|
|
|
|
|------------|---------------|
|
|
|
|
| (空) | 禁用 |
|
|
|
|
| packetaddr | 由 v2ray 5+ 支持 |
|
|
|
|
| xudp | 由 xray 支持 |
|
|
|
|
|
2023-11-08 12:09:22 +08:00
|
|
|
#### multiplex
|
|
|
|
|
|
|
|
参阅 [多路复用](/zh/configuration/shared/multiplex#outbound)。
|
|
|
|
|
2022-09-13 11:24:33 +08:00
|
|
|
#### transport
|
|
|
|
|
2023-12-14 22:23:52 +08:00
|
|
|
V2Ray 传输配置,参阅 [V2Ray 传输层](/zh/configuration/shared/v2ray-transport/)。
|
2022-09-13 11:24:33 +08:00
|
|
|
|
|
|
|
### 拨号字段
|
|
|
|
|
|
|
|
参阅 [拨号字段](/zh/configuration/shared/dial/)。
|