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

57 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

### 结构
```json
{
"type": "shadowtls",
"tag": "st-out",
"server": "127.0.0.1",
"server_port": 1080,
2023-02-18 06:55:47 +00:00
"version": 3,
2022-10-06 14:51:51 +00:00
"password": "fuck me till the daylight",
"tls": {},
... // 拨号字段
}
```
### 字段
#### server
==必填==
服务器地址。
#### server_port
==必填==
服务器端口。
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 06:55:47 +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
设置密码。
2023-02-18 06:55:47 +00:00
仅在 ShadowTLS v2/v3 协议中可用。
2022-10-06 14:51:51 +00:00
#### tls
==必填==
TLS 配置, 参阅 [TLS](/zh/configuration/shared/tls/#outbound)。
### 拨号字段
参阅 [拨号字段](/zh/configuration/shared/dial/)。