mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-29 16:58:34 +00:00
Add xchacha20-ietf-poly1305 for Shadowsocks
This commit is contained in:
parent
3fe61ed4a2
commit
238bd5d050
5 changed files with 52 additions and 23 deletions
|
@ -18,6 +18,8 @@ func cipherFromString(c string) shadowsocks.CipherType {
|
|||
return shadowsocks.CipherType_AES_256_GCM
|
||||
case "chacha20-poly1305", "aead_chacha20_poly1305", "chacha20-ietf-poly1305":
|
||||
return shadowsocks.CipherType_CHACHA20_POLY1305
|
||||
case "xchacha20-poly1305", "aead_xchacha20_poly1305", "xchacha20-ietf-poly1305":
|
||||
return shadowsocks.CipherType_XCHACHA20_POLY1305
|
||||
case "none", "plain":
|
||||
return shadowsocks.CipherType_NONE
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue