Skip to content

Commit

Permalink
not use a fixed port number
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx committed Aug 8, 2024
1 parent ccf8d66 commit bbe9a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/pd-ut/alloc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit bbe9a56

Please sign in to comment.