From bbe9a5697a51935f1110651d820855fd846c1d14 Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Thu, 8 Aug 2024 15:34:31 +0800 Subject: [PATCH] not use a fixed port number Signed-off-by: Ryan Leung --- tools/pd-ut/alloc/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pd-ut/alloc/server.go b/tools/pd-ut/alloc/server.go index aced73467fb..a5643001142 100644 --- a/tools/pd-ut/alloc/server.go +++ b/tools/pd-ut/alloc/server.go @@ -28,7 +28,7 @@ import ( "go.uber.org/zap" ) -var statusAddress = flag.String("status-addr", "0.0.0.0:20180", "status address") +var statusAddress = flag.String("status-addr", "0.0.0.0:0", "status address") func RunHTTPServer() *http.Server { err := os.Setenv(tempurl.AllocURLFromUT, fmt.Sprintf("http://%s/alloc", *statusAddress))