fix: TABLE is only enabled for feature="stream-cipher"

This commit is contained in:
zonyitoo
2024-06-14 23:27:20 +08:00
parent b5f3065f3d
commit bc8cfeeda7

View File

@@ -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)