From f7362f82b5ad5a4b9196726c83dda89a9752503f Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Wed, 7 Jun 2023 13:20:45 +0800 Subject: [PATCH] fix: Resolve delay omission in the presence of nested proxy-groups --- hub/route/proxies.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hub/route/proxies.go b/hub/route/proxies.go index ea6a3302..36c9d1b1 100644 --- a/hub/route/proxies.go +++ b/hub/route/proxies.go @@ -125,7 +125,7 @@ func getProxyDelay(w http.ResponseWriter, r *http.Request) { ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*time.Duration(timeout)) defer cancel() - delay, err := proxy.URLTest(ctx, url, expectedStatus, C.DropHistory) + delay, err := proxy.URLTest(ctx, url, expectedStatus, C.ExtraHistory) if ctx.Err() != nil { render.Status(r, http.StatusGatewayTimeout) render.JSON(w, r, ErrRequestTimeout)