From cc0e4e804a170a5389abc220ba4924fc2993e0e7 Mon Sep 17 00:00:00 2001 From: zonyitoo Date: Wed, 12 Jun 2024 02:20:15 +0800 Subject: [PATCH] fix(local-online-build): fix online_config missing in default build --- crates/shadowsocks-service/src/config.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/crates/shadowsocks-service/src/config.rs b/crates/shadowsocks-service/src/config.rs index a35e19f5bea0..5f7e80faa36f 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, @@ -1366,6 +1359,7 @@ pub struct Config { /// OnlineConfiguration (SIP008) /// https://shadowsocks.org/doc/sip008.html + #[cfg(feature = "local-online-config")] pub online_config: Option, } @@ -1489,6 +1483,7 @@ impl Config { worker_count: 1, + #[cfg(feature = "local-online-config")] online_config: None, } }