Skip to content

Commit

Permalink
Add http:// prefix to URLs in console at startup
Browse files Browse the repository at this point in the history
This makes the URLs trivially clickable instead of requiring manual copy-pasting
in order to open these URLs in a web browser.
  • Loading branch information
mbrukman committed Aug 12, 2023
1 parent 1d32bba commit 83c09bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func main() {
}

hostPort := fmt.Sprintf("%s:%d", *host, *port)
log.Printf("Listening on %s", hostPort)
log.Printf("Listening on http://%s", hostPort)

proxy := &Proxy{
Backends: backends,
Expand Down
2 changes: 1 addition & 1 deletion web/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ func main() {
http.HandleFunc("/", apiHandler.DispatchHandler)

hostPort := fmt.Sprintf("%s:%s", *host, *port)
log.Printf("Listening on %s", hostPort)
log.Printf("Listening on http://%s", hostPort)
log.Fatal(http.ListenAndServe(hostPort, nil))
}

0 comments on commit 83c09bb

Please sign in to comment.