sing-box/docs/configuration/inbound/shadowtls.zh.md

83 lines
1.7 KiB
Markdown
Raw Normal View History

### 结构
```json
{
"type": "shadowtls",
"tag": "st-in",
... // 监听字段
2023-02-18 11:27:22 +00:00
"version": 3,
2022-10-06 14:51:51 +00:00
"password": "fuck me till the daylight",
"users": [
{
"name": "sekai",
"password": "8JCsPssfgS8tiRwiMlhARg=="
}
],
"handshake": {
"server": "google.com",
"server_port": 443,
... // 拨号字段
},
"handshake_for_server_name": {
"example.com": {
"server": "example.com",
"server_port": 443,
... // 拨号字段
}
2023-02-21 13:18:43 +00:00
},
"strict_mode": false
}
```
### 监听字段
参阅 [监听字段](/zh/configuration/shared/listen/)。
### 字段
2022-10-06 14:51:51 +00:00
#### 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) |
2023-02-18 11:27:22 +00:00
| `3` | [ShadowTLS v3](https://github.com/ihciah/shadow-tls/blob/master/docs/protocol-v3-en.md) |
2022-10-06 14:51:51 +00:00
#### password
ShadowTLS 密码。
2022-10-06 14:51:51 +00:00
仅在 ShadowTLS 协议版本 2 中可用。
#### users
ShadowTLS 用户。
仅在 ShadowTLS 协议版本 3 中可用。
2022-10-06 14:51:51 +00:00
#### handshake
==必填==
握手服务器地址和 [拨号参数](/zh/configuration/shared/dial/)。
2023-03-08 06:51:52 +00:00
#### handshake_for_server_name
==必填==
对于特定服务器名称的握手服务器地址和 [拨号参数](/zh/configuration/shared/dial/)。
仅在 ShadowTLS 协议版本 2/3 中可用。
2023-02-21 13:18:43 +00:00
#### strict_mode
ShadowTLS 严格模式。
仅在 ShadowTLS 协议版本 3 中可用。