mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-12-05 21:06:43 +00:00
1.7 KiB
1.7 KiB
Structure
{
"type": "shadowtls",
"tag": "st-in",
... // Listen Fields
"version": 3,
"password": "fuck me till the daylight",
"users": [
{
"name": "sekai",
"password": "8JCsPssfgS8tiRwiMlhARg=="
}
],
"handshake": {
"server": "google.com",
"server_port": 443,
... // Dial Fields
},
"handshake_for_server_name": {
"example.com": {
"server": "example.com",
"server_port": 443,
... // Dial Fields
}
},
"strict_mode": false
}
Listen Fields
See Listen Fields for details.
Fields
version
ShadowTLS protocol version.
Value | Protocol Version |
---|---|
1 (default) |
ShadowTLS v1 |
2 |
ShadowTLS v2 |
3 |
ShadowTLS v3 |
password
ShadowTLS password.
Only available in the ShadowTLS protocol 2.
users
ShadowTLS users.
Only available in the ShadowTLS protocol 3.
handshake
==Required==
Handshake server address and Dial options.
handshake_for_server_name
Handshake server address and Dial options for specific server name.
Only available in the ShadowTLS protocol 2/3.
strict_mode
ShadowTLS strict mode.
Only available in the ShadowTLS protocol 3.