From 1e24ca8ce32c45fe9d84d97f31fb1de422948709 Mon Sep 17 00:00:00 2001 From: Vincent Cheung <71457708+vcheung-stripe@users.noreply.github.com> Date: Fri, 18 Oct 2024 14:09:48 -0700 Subject: [PATCH] use localhost for serve command (#1265) --- pkg/cmd/serve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/serve.go b/pkg/cmd/serve.go index e861e4b3..3051fd53 100644 --- a/pkg/cmd/serve.go +++ b/pkg/cmd/serve.go @@ -42,7 +42,7 @@ func newServeCmd() *serveCmd { fmt.Println("Starting static file server at address", fmt.Sprintf("http://localhost:%s", port)) http.Handle("/", http.FileServer(http.Dir(absoluteDir))) - return http.ListenAndServe(fmt.Sprintf(":%s", port), handlers.LoggingHandler(os.Stdout, http.DefaultServeMux)) + return http.ListenAndServe(fmt.Sprintf("localhost:%s", port), handlers.LoggingHandler(os.Stdout, http.DefaultServeMux)) }, }