Skip to content

Commit

Permalink
fix(local-online-build): fix online_config missing in default build
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Jun 11, 2024
1 parent 3b7ca91 commit cc0e4e8
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 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 @@ -1366,6 +1359,7 @@ pub struct Config {

/// OnlineConfiguration (SIP008)
/// https://shadowsocks.org/doc/sip008.html
#[cfg(feature = "local-online-config")]
pub online_config: Option<OnlineConfig>,
}

Expand Down Expand Up @@ -1489,6 +1483,7 @@ impl Config {

worker_count: 1,

#[cfg(feature = "local-online-config")]
online_config: None,
}
}
Expand Down

0 comments on commit cc0e4e8

Please sign in to comment.