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

56 lines
1.2 KiB
Markdown
Raw Normal View History

### Structure
```json
{
"type": "shadowtls",
"tag": "st-in",
... // Listen Fields
2022-10-06 14:51:51 +00:00
"version": 2,
"password": "fuck me till the daylight",
2022-11-21 13:12:11 +00:00
"fallback_after": 2,
"handshake": {
"server": "google.com",
"server_port": 443,
... // Dial Fields
}
}
```
### Listen Fields
See [Listen Fields](/configuration/shared/listen) for details.
### Fields
2022-10-06 14:51:51 +00:00
#### 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.
2022-11-21 13:12:11 +00:00
#### fallback_after
Packet count before perform fallback.
Default is 2.
Lowering this may prevent TLS 1.3 connections, but reduces the risk of being actively probed.
#### handshake
==Required==
2022-10-06 14:51:51 +00:00
Handshake server address and [Dial options](/configuration/shared/dial).