2022-08-31 06:21:53 +00:00
|
|
|
### Structure
|
|
|
|
|
|
|
|
```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",
|
2022-08-31 06:21:53 +00:00
|
|
|
"tls": {},
|
|
|
|
|
|
|
|
... // Dial Fields
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### Fields
|
|
|
|
|
|
|
|
#### server
|
|
|
|
|
|
|
|
==Required==
|
|
|
|
|
|
|
|
The server address.
|
|
|
|
|
|
|
|
#### server_port
|
|
|
|
|
|
|
|
==Required==
|
|
|
|
|
|
|
|
The server port.
|
|
|
|
|
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) |
|
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
|
|
|
|
|
|
|
|
Set password.
|
|
|
|
|
2023-02-18 06:55:47 +00:00
|
|
|
Only available in the ShadowTLS v2/v3 protocol.
|
2022-10-06 14:51:51 +00:00
|
|
|
|
2022-08-31 06:21:53 +00:00
|
|
|
#### tls
|
|
|
|
|
|
|
|
==Required==
|
|
|
|
|
|
|
|
TLS configuration, see [TLS](/configuration/shared/tls/#outbound).
|
|
|
|
|
|
|
|
### Dial Fields
|
|
|
|
|
|
|
|
See [Dial Fields](/configuration/shared/dial) for details.
|