2022-08-31 14:21:53 +08:00
|
|
|
### Structure
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"type": "shadowtls",
|
|
|
|
"tag": "st-in",
|
|
|
|
|
|
|
|
... // Listen Fields
|
|
|
|
|
2023-02-18 19:27:22 +08:00
|
|
|
"version": 3,
|
2022-10-06 22:51:51 +08:00
|
|
|
"password": "fuck me till the daylight",
|
2023-02-21 16:07:08 +08:00
|
|
|
"users": [
|
|
|
|
{
|
|
|
|
"name": "sekai",
|
|
|
|
"password": "8JCsPssfgS8tiRwiMlhARg=="
|
|
|
|
}
|
|
|
|
],
|
2022-08-31 14:21:53 +08:00
|
|
|
"handshake": {
|
|
|
|
"server": "google.com",
|
|
|
|
"server_port": 443,
|
|
|
|
|
|
|
|
... // Dial Fields
|
2023-02-21 16:07:08 +08:00
|
|
|
},
|
|
|
|
"handshake_for_server_name": {
|
|
|
|
"example.com": {
|
|
|
|
"server": "example.com",
|
|
|
|
"server_port": 443,
|
|
|
|
|
|
|
|
... // Dial Fields
|
|
|
|
}
|
2023-02-21 21:18:43 +08:00
|
|
|
},
|
|
|
|
"strict_mode": false
|
2022-08-31 14:21:53 +08:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### Listen Fields
|
|
|
|
|
|
|
|
See [Listen Fields](/configuration/shared/listen) for details.
|
|
|
|
|
|
|
|
### Fields
|
|
|
|
|
2022-10-06 22:51:51 +08: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) |
|
2023-02-18 19:27:22 +08:00
|
|
|
| `3` | [ShadowTLS v3](https://github.com/ihciah/shadow-tls/blob/master/docs/protocol-v3-en.md) |
|
2022-10-06 22:51:51 +08:00
|
|
|
|
|
|
|
#### password
|
|
|
|
|
2023-02-21 16:07:08 +08:00
|
|
|
ShadowTLS password.
|
|
|
|
|
|
|
|
Only available in the ShadowTLS protocol 2.
|
|
|
|
|
|
|
|
|
|
|
|
#### users
|
|
|
|
|
|
|
|
ShadowTLS users.
|
2022-10-06 22:51:51 +08:00
|
|
|
|
2023-02-21 16:07:08 +08:00
|
|
|
Only available in the ShadowTLS protocol 3.
|
2022-10-06 22:51:51 +08:00
|
|
|
|
2022-08-31 14:21:53 +08:00
|
|
|
#### handshake
|
|
|
|
|
|
|
|
==Required==
|
|
|
|
|
2023-02-21 16:07:08 +08:00
|
|
|
Handshake server address and [Dial options](/configuration/shared/dial).
|
|
|
|
|
2023-03-08 14:51:52 +08:00
|
|
|
#### handshake_for_server_name
|
2023-02-21 16:07:08 +08:00
|
|
|
|
|
|
|
Handshake server address and [Dial options](/configuration/shared/dial) for specific server name.
|
|
|
|
|
|
|
|
Only available in the ShadowTLS protocol 2/3.
|
2023-02-21 21:18:43 +08:00
|
|
|
|
|
|
|
#### strict_mode
|
|
|
|
|
|
|
|
ShadowTLS strict mode.
|
|
|
|
|
|
|
|
Only available in the ShadowTLS protocol 3.
|