mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-10 02:53:12 +00:00
48 lines
1.1 KiB
Markdown
48 lines
1.1 KiB
Markdown
### 结构
|
|
|
|
```json
|
|
{
|
|
"type": "shadowtls",
|
|
"tag": "st-in",
|
|
|
|
... // 监听字段
|
|
|
|
"version": 3,
|
|
"password": "fuck me till the daylight",
|
|
"handshake": {
|
|
"server": "google.com",
|
|
"server_port": 443,
|
|
|
|
... // 拨号字段
|
|
}
|
|
}
|
|
```
|
|
|
|
### 监听字段
|
|
|
|
参阅 [监听字段](/zh/configuration/shared/listen/)。
|
|
|
|
### 字段
|
|
|
|
#### 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 协议中可用。
|
|
|
|
#### handshake
|
|
|
|
==必填==
|
|
|
|
握手服务器地址和 [拨号参数](/zh/configuration/shared/dial/)。
|