mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-16 14:42:22 +08:00
57 lines
1.1 KiB
Markdown
57 lines
1.1 KiB
Markdown
### 结构
|
|
|
|
```json
|
|
{
|
|
"type": "shadowtls",
|
|
"tag": "st-out",
|
|
|
|
"server": "127.0.0.1",
|
|
"server_port": 1080,
|
|
"version": 3,
|
|
"password": "fuck me till the daylight",
|
|
"tls": {},
|
|
|
|
... // 拨号字段
|
|
}
|
|
```
|
|
|
|
### 字段
|
|
|
|
#### server
|
|
|
|
==必填==
|
|
|
|
服务器地址。
|
|
|
|
#### server_port
|
|
|
|
==必填==
|
|
|
|
服务器端口。
|
|
|
|
#### version
|
|
|
|
ShadowTLS 协议版本。
|
|
|
|
| 值 | 协议版本 |
|
|
|---------------|-----------------------------------------------------------------------------------------|
|
|
| `1` (default) | [ShadowTLS v1](https://github.com/ihciah/shadow-tls/blob/master/docs/protocol-en.md#v1) |
|
|
| `2` | [ShadowTLS v2](https://github.com/ihciah/shadow-tls/blob/master/docs/protocol-en.md#v2) |
|
|
| `3` | [ShadowTLS v3](https://github.com/ihciah/shadow-tls/blob/master/docs/protocol-v3-en.md) |
|
|
|
|
#### password
|
|
|
|
设置密码。
|
|
|
|
仅在 ShadowTLS v2/v3 协议中可用。
|
|
|
|
#### tls
|
|
|
|
==必填==
|
|
|
|
TLS 配置, 参阅 [TLS](/zh/configuration/shared/tls/#outbound)。
|
|
|
|
### 拨号字段
|
|
|
|
参阅 [拨号字段](/zh/configuration/shared/dial/)。
|