Skip to content

Commit

Permalink
fix(local-online-build): fixed build with default features
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Jun 11, 2024
1 parent 87c1557 commit 27f3507
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions crates/shadowsocks-service/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2380,6 +2380,7 @@ impl Config {
nconfig.acl = Some(acl);
}

#[cfg(feature = "local-online-config")]
if let Some(online_config) = config.online_config {
nconfig.online_config = Some(OnlineConfig {
config_url: online_config.config_url,
Expand Down Expand Up @@ -3126,6 +3127,7 @@ impl fmt::Display for Config {
}

// OnlineConfig
#[cfg(feature = "local-online-config")]
if let Some(ref online_config) = self.online_config {
jconf.online_config = Some(SSOnlineConfig {
config_url: online_config.config_url.clone(),
Expand Down
5 changes: 3 additions & 2 deletions crates/shadowsocks-service/src/local/http/http_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ use std::{
time::{Duration, Instant},
};

use hyper::rt::{Sleep, Timer};
use hyper::{
body::{self, Body},
client::conn::{http1, http2},
http::uri::Scheme,
Request, Response,
rt::{Sleep, Timer},
Request,
Response,
};
use log::{error, trace};
use lru_time_cache::LruCache;
Expand Down

0 comments on commit 27f3507

Please sign in to comment.