From 5fb6944f76d2aaaaf3f5835b1c5e5aed2c9aace3 Mon Sep 17 00:00:00 2001 From: zonyitoo Date: Thu, 20 Jun 2024 00:05:09 +0800 Subject: [PATCH] fix: local-online-config cond for ConfigType::OnlineConfig --- crates/shadowsocks-service/src/config.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/crates/shadowsocks-service/src/config.rs b/crates/shadowsocks-service/src/config.rs index cc40d81a19ab..d44406477b76 100644 --- a/crates/shadowsocks-service/src/config.rs +++ b/crates/shadowsocks-service/src/config.rs @@ -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, @@ -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, };