From 2e20d34f847a255792df51c88191fc96d5c4d81d Mon Sep 17 00:00:00 2001 From: yuhan6665 <1588741+yuhan6665@users.noreply.github.com> Date: Sat, 11 Jul 2020 15:14:15 -0400 Subject: [PATCH] Fix parser for shadowsocks cipher none --- infra/conf/shadowsocks.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infra/conf/shadowsocks.go b/infra/conf/shadowsocks.go index 8f61ccf8..efd62f12 100644 --- a/infra/conf/shadowsocks.go +++ b/infra/conf/shadowsocks.go @@ -26,6 +26,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 "none", "plain": + return shadowsocks.CipherType_NONE default: return shadowsocks.CipherType_UNKNOWN }