mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-11-06 16:14:11 +00:00
fix(local-online-build): fixed build with default features
This commit is contained in:
@@ -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,
|
||||
@@ -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(),
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user