Skip to content

Commit

Permalink
fixed bug, check TCP mode enabled only for HTTP
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Oct 7, 2021
1 parent a77ea0b commit 9641023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/shadowsocks-service/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ impl Config {
}

#[cfg(feature = "local-http")]
if !local_config.mode.enable_tcp() {
if local_config.protocol == ProtocolType::Http && !local_config.mode.enable_tcp() {
let err = Error::new(
ErrorKind::Invalid,
"invalid `mode`, TCP have to be enabled for http",
Expand Down

0 comments on commit 9641023

Please sign in to comment.