From 22e5298ec92f0eb5e9c15778755963c3d17d0366 Mon Sep 17 00:00:00 2001 From: Yuwei Ba Date: Sat, 28 Oct 2023 00:35:22 +1100 Subject: [PATCH] fix latency api rv (#146) --- clash_lib/src/app/api/handlers/proxy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clash_lib/src/app/api/handlers/proxy.rs b/clash_lib/src/app/api/handlers/proxy.rs index a56191725..0f0de9002 100644 --- a/clash_lib/src/app/api/handlers/proxy.rs +++ b/clash_lib/src/app/api/handlers/proxy.rs @@ -140,7 +140,7 @@ async fn get_proxy_delay( let mut r = HashMap::new(); r.insert("delay".to_owned(), delay); r.insert("meanDelay".to_owned(), mean_delay); - (headers, axum::response::Json(delay)).into_response() + (headers, axum::response::Json(r)).into_response() } Err(err) => ( StatusCode::BAD_REQUEST,