From bc8cfeeda79cf90abb032b7306abe7582ee7eb45 Mon Sep 17 00:00:00 2001 From: zonyitoo Date: Fri, 14 Jun 2024 23:27:20 +0800 Subject: [PATCH] fix: TABLE is only enabled for feature="stream-cipher" --- crates/shadowsocks/src/config.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/shadowsocks/src/config.rs b/crates/shadowsocks/src/config.rs index 27437372b5de..405c01b0a470 100644 --- a/crates/shadowsocks/src/config.rs +++ b/crates/shadowsocks/src/config.rs @@ -405,6 +405,7 @@ where { let password = password.into(); + #[cfg(feature = "stream-cipher")] if method == CipherKind::SS_TABLE { // TABLE cipher doesn't need key derivation. // Reference implemenation: shadowsocks-libev, shadowsocks (Python)