Skip to content

Commit 25430b7

Browse files
MHSanaeialireza0
andcommitted
[ss] fix adding ietf clients by api
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
1 parent 6aeedac commit 25430b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

xray/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ func (x *XrayAPI) AddUser(Protocol string, inboundTag string, user map[string]in
108108
ssCipherType = shadowsocks.CipherType_AES_128_GCM
109109
case "aes-256-gcm":
110110
ssCipherType = shadowsocks.CipherType_AES_256_GCM
111-
case "chacha20-poly1305":
111+
case "chacha20-poly1305", "chacha20-ietf-poly1305":
112112
ssCipherType = shadowsocks.CipherType_CHACHA20_POLY1305
113-
case "xchacha20-poly1305":
113+
case "xchacha20-poly1305", "xchacha20-ietf-poly1305":
114114
ssCipherType = shadowsocks.CipherType_XCHACHA20_POLY1305
115115
default:
116116
ssCipherType = shadowsocks.CipherType_NONE

0 commit comments

Comments
 (0)