Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-08-29 22:02:49 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-08-29 22:02:49 +0300
commit25430b7818958ae35d012948a907c260c3cd6d5e (patch)
tree0b4f8041759953f4a9da093257d03903db573be2
parent6aeedac051dde1c0fb6db23cd6ab83a6ff26fb7c (diff)
[ss] fix adding ietf clients by api
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
-rw-r--r--xray/api.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xray/api.go b/xray/api.go
index 56406df0..10d22ae1 100644
--- a/xray/api.go
+++ b/xray/api.go
@@ -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