Skip to content

Commit

Permalink
fix: TABLE is only enabled for feature="stream-cipher"
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Jun 14, 2024
1 parent b5f3065 commit bc8cfee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/shadowsocks/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bc8cfee

Please sign in to comment.