Skip to content

Commit

Permalink
[ss] fix adding ietf clients by api
Browse files Browse the repository at this point in the history
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
  • Loading branch information
MHSanaei and alireza0 committed Aug 29, 2023
1 parent 6aeedac commit 25430b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xray/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ func (x *XrayAPI) AddUser(Protocol string, inboundTag string, user map[string]in
ssCipherType = shadowsocks.CipherType_AES_128_GCM
case "aes-256-gcm":
ssCipherType = shadowsocks.CipherType_AES_256_GCM
case "chacha20-poly1305":
case "chacha20-poly1305", "chacha20-ietf-poly1305":
ssCipherType = shadowsocks.CipherType_CHACHA20_POLY1305
case "xchacha20-poly1305":
case "xchacha20-poly1305", "xchacha20-ietf-poly1305":
ssCipherType = shadowsocks.CipherType_XCHACHA20_POLY1305
default:
ssCipherType = shadowsocks.CipherType_NONE
Expand Down

0 comments on commit 25430b7

Please sign in to comment.