From 31be70b33355c9ce5f2dc7f1e5d8df5a05b8095c Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sun, 27 Aug 2023 15:08:43 +0200 Subject: [PATCH] [ss] fix adding ietf clients by api --- xray/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xray/api.go b/xray/api.go index 41ba6cb9..83fdb893 100644 --- a/xray/api.go +++ b/xray/api.go @@ -107,9 +107,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