Add multiple server names and multi-user support for shadowtls

This commit is contained in:
世界
2023-02-21 16:07:08 +08:00
parent 611d6bbfc5
commit 23e8d282a3
9 changed files with 106 additions and 27 deletions

View File

@@ -9,11 +9,25 @@
"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
}
}
}
```
@@ -36,12 +50,25 @@ ShadowTLS protocol version.
#### password
Set password.
ShadowTLS password.
Only available in the ShadowTLS v2/v3 protocol.
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](/configuration/shared/dial).
Handshake server address and [Dial options](/configuration/shared/dial).
#### handshake
Handshake server address and [Dial options](/configuration/shared/dial) for specific server name.
Only available in the ShadowTLS protocol 2/3.