Skip to content

Commit 5fb6944

Browse files
committed
fix: local-online-config cond for ConfigType::OnlineConfig
1 parent 0432d13 commit 5fb6944

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

crates/shadowsocks-service/src/config.rs

+2-8
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,7 @@ use serde::{Deserialize, Serialize};
7070
use shadowsocks::relay::socks5::Address;
7171
use shadowsocks::{
7272
config::{
73-
ManagerAddr,
74-
Mode,
75-
ReplayAttackPolicy,
76-
ServerAddr,
77-
ServerConfig,
78-
ServerSource,
79-
ServerUser,
80-
ServerUserManager,
73+
ManagerAddr, Mode, ReplayAttackPolicy, ServerAddr, ServerConfig, ServerSource, ServerUser, ServerUserManager,
8174
ServerWeight,
8275
},
8376
crypto::CipherKind,
@@ -1866,6 +1859,7 @@ impl Config {
18661859

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

0 commit comments

Comments
 (0)