mirror of
https://github.com/sadoyan/aralez.git
synced 2026-04-30 23:08:40 +08:00
Added inject response header functionality
This commit is contained in:
@@ -10,7 +10,7 @@ use log::info;
|
||||
use tokio::net::TcpListener;
|
||||
|
||||
#[allow(unused_mut)]
|
||||
pub async fn run_server(bindaddress: String, mut toreturn: Sender<UpstreamsDashMap>) {
|
||||
pub async fn run_server(bindaddress: String, mut toreturn: Sender<(UpstreamsDashMap, Headers)>) {
|
||||
let mut tr = toreturn.clone();
|
||||
let app = Router::new()
|
||||
.route("/{*wildcard}", get(getconfig))
|
||||
|
||||
Reference in New Issue
Block a user