mirror of
https://github.com/sadoyan/aralez.git
synced 2026-04-30 06:48:37 +08:00
Added whitelisted or all services support t Consul
This commit is contained in:
@@ -95,7 +95,8 @@ impl BackgroundService for LB {
|
||||
}
|
||||
}
|
||||
}
|
||||
// print_upstreams(&self.ump_full);
|
||||
info!("Upstreams list is changed, updating to:");
|
||||
print_upstreams(&self.ump_full);
|
||||
}
|
||||
None => {}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ pub async fn run_server(bindaddress: String, mut toreturn: Sender<(UpstreamsDash
|
||||
|
||||
match serverlist {
|
||||
Some(serverlist) => {
|
||||
let _ = tr.send((serverlist.0, serverlist.1)).await.unwrap();
|
||||
let _ = tr.send((serverlist.upstreams, serverlist.headers)).await.unwrap();
|
||||
Response::builder().status(StatusCode::CREATED).body(Body::from("Config, conf file, updated!\n")).unwrap()
|
||||
}
|
||||
None => Response::builder()
|
||||
|
||||
Reference in New Issue
Block a user