Skip to content

Commit

Permalink
fix: local-online-config cond for ConfigType::OnlineConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Jun 19, 2024
1 parent 0432d13 commit 5fb6944
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions crates/shadowsocks-service/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,7 @@ use serde::{Deserialize, Serialize};
use shadowsocks::relay::socks5::Address;
use shadowsocks::{
config::{
ManagerAddr,
Mode,
ReplayAttackPolicy,
ServerAddr,
ServerConfig,
ServerSource,
ServerUser,
ServerUserManager,
ManagerAddr, Mode, ReplayAttackPolicy, ServerAddr, ServerConfig, ServerSource, ServerUser, ServerUserManager,
ServerWeight,
},
crypto::CipherKind,
Expand Down Expand Up @@ -1866,6 +1859,7 @@ impl Config {

let server_source = match config_type {
ConfigType::Local | ConfigType::Server | ConfigType::Manager => ServerSource::Configuration,
#[cfg(feature = "local-online-config")]
ConfigType::OnlineConfig => ServerSource::OnlineConfig,
};

Expand Down

0 comments on commit 5fb6944

Please sign in to comment.