mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-10 02:53:12 +00:00
46 lines
1,007 B
Markdown
46 lines
1,007 B
Markdown
### Structure
|
|
|
|
```json
|
|
{
|
|
"type": "shadowtls",
|
|
"tag": "st-in",
|
|
|
|
... // Listen Fields
|
|
|
|
"version": 2,
|
|
"password": "fuck me till the daylight",
|
|
"handshake": {
|
|
"server": "google.com",
|
|
"server_port": 443,
|
|
|
|
... // Dial Fields
|
|
}
|
|
}
|
|
```
|
|
|
|
### Listen Fields
|
|
|
|
See [Listen Fields](/configuration/shared/listen) for details.
|
|
|
|
### Fields
|
|
|
|
#### version
|
|
|
|
ShadowTLS protocol version.
|
|
|
|
| Value | Protocol Version |
|
|
|---------------|-----------------------------------------------------------------------------------------|
|
|
| `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) |
|
|
|
|
#### password
|
|
|
|
Set password.
|
|
|
|
Only available in the ShadowTLS v2 protocol.
|
|
|
|
#### handshake
|
|
|
|
==Required==
|
|
|
|
Handshake server address and [Dial options](/configuration/shared/dial). |