mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-26 02:21:28 +00:00
55 lines
978 B
Markdown
55 lines
978 B
Markdown
|
#### Server
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"inbounds": [
|
||
|
{
|
||
|
"type": "shadowtls",
|
||
|
"listen": "::",
|
||
|
"listen_port": 4443,
|
||
|
"handshake": {
|
||
|
"server": "google.com",
|
||
|
"server_port": 443
|
||
|
},
|
||
|
"detour": "shadowsocks-in"
|
||
|
},
|
||
|
{
|
||
|
"type": "shadowsocks",
|
||
|
"tag": "shadowsocks-in",
|
||
|
"listen": "127.0.0.1",
|
||
|
"method": "2022-blake3-aes-128-gcm",
|
||
|
"password": "8JCsPssfgS8tiRwiMlhARg=="
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
```
|
||
|
|
||
|
#### Client
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"outbounds": [
|
||
|
{
|
||
|
"type": "shadowsocks",
|
||
|
"method": "2022-blake3-aes-128-gcm",
|
||
|
"password": "8JCsPssfgS8tiRwiMlhARg==",
|
||
|
"detour": "shadowtls-out",
|
||
|
"multiplex": {
|
||
|
"enabled": 1,
|
||
|
"max_connections": 4,
|
||
|
"min_streams": 4
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "shadowtls",
|
||
|
"tag": "shadowtls-out",
|
||
|
"server": "127.0.0.1",
|
||
|
"server_port": 4443,
|
||
|
"tls": {
|
||
|
"enabled": true,
|
||
|
"server_name": "google.com"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
```
|