mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-19 13:32:24 +00:00
[ss] fix adding ietf clients by api
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
This commit is contained in:
parent
6aeedac051
commit
25430b7818
1 changed files with 2 additions and 2 deletions
|
@ -108,9 +108,9 @@ func (x *XrayAPI) AddUser(Protocol string, inboundTag string, user map[string]in
|
||||||
ssCipherType = shadowsocks.CipherType_AES_128_GCM
|
ssCipherType = shadowsocks.CipherType_AES_128_GCM
|
||||||
case "aes-256-gcm":
|
case "aes-256-gcm":
|
||||||
ssCipherType = shadowsocks.CipherType_AES_256_GCM
|
ssCipherType = shadowsocks.CipherType_AES_256_GCM
|
||||||
case "chacha20-poly1305":
|
case "chacha20-poly1305", "chacha20-ietf-poly1305":
|
||||||
ssCipherType = shadowsocks.CipherType_CHACHA20_POLY1305
|
ssCipherType = shadowsocks.CipherType_CHACHA20_POLY1305
|
||||||
case "xchacha20-poly1305":
|
case "xchacha20-poly1305", "xchacha20-ietf-poly1305":
|
||||||
ssCipherType = shadowsocks.CipherType_XCHACHA20_POLY1305
|
ssCipherType = shadowsocks.CipherType_XCHACHA20_POLY1305
|
||||||
default:
|
default:
|
||||||
ssCipherType = shadowsocks.CipherType_NONE
|
ssCipherType = shadowsocks.CipherType_NONE
|
||||||
|
|
Loading…
Reference in a new issue