mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2025-01-19 17:21:41 +03:00
Update: shadowsocks inbound (#8)
This commit is contained in:
parent
0058f7012f
commit
4e631fc6ef
@ -27,17 +27,38 @@
|
||||
|
||||
```json
|
||||
{
|
||||
"email": "love@xray.com",
|
||||
"method": "aes-256-gcm",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"password": "密码",
|
||||
"method": "aes-256-gcm",
|
||||
"level": 0,
|
||||
"network": "tcp"
|
||||
"email": "love@xray.com"
|
||||
}
|
||||
],
|
||||
"network": "tcp,udp"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
> `email`: string
|
||||
> `network`: "tcp" | "udp" | "tcp,udp"
|
||||
|
||||
邮件地址,可选,用于标识用户
|
||||
可接收的网络协议类型。比如当指定为 `"tcp"` 时,仅会接收 TCP 流量。默认值为 `"tcp"`。
|
||||
|
||||
## ClientObject
|
||||
|
||||
```json
|
||||
{
|
||||
"password": "密码",
|
||||
"method": "aes-256-gcm",
|
||||
"level": 0,
|
||||
"email": "love@xray.com"
|
||||
}
|
||||
```
|
||||
|
||||
::: tip
|
||||
(v1.2.3+) Xray 支持 Shadowsocks 单端口多用户,但是需要将该入站所有用户的加密方式设置为 AEAD。
|
||||
:::
|
||||
|
||||
> `method`: string
|
||||
|
||||
@ -61,6 +82,6 @@ Shadowsocks 协议不限制密码长度,但短密码会更可能被破解,
|
||||
|
||||
`level` 的值, 对应 [policy](../policy.md#levelpolicyobject) 中 `level` 的值。 如不指定, 默认为 0。
|
||||
|
||||
> `network`: "tcp" | "udp" | "tcp,udp"
|
||||
> `email`: string
|
||||
|
||||
可接收的网络协议类型。比如当指定为 `"tcp"` 时,仅会接收 TCP 流量。默认值为 `"tcp"`。
|
||||
用户邮箱,用于区分不同用户的流量(日志、统计)。
|
Loading…
x
Reference in New Issue
Block a user