Skip to content

Commit

Permalink
use localhost for serve command (#1265)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcheung-stripe authored Oct 18, 2024
1 parent 94c1bee commit 1e24ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
},
}

Expand Down

0 comments on commit 1e24ca8

Please sign in to comment.