Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: local-online-config cond for ConfigType::OnlineConfig
Browse files Browse the repository at this point in the history
zonyitoo committed Jun 19, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
@@ -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,
};

0 comments on commit 5fb6944

Please sign in to comment.