Skip to content

Commit a69a61d

Browse files
committed
Print UI address to console
1 parent 542e34a commit a69a61d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cmd/ssl-status-board/main.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ func main() {
3030

3131
frontend.HandleUi()
3232

33+
var formattedAddress = func() string {
34+
if strings.HasPrefix(*address, ":") {
35+
return "http://localhost" + *address
36+
}
37+
return "http://" + *address
38+
}
39+
40+
log.Printf("UI is available at %v", formattedAddress())
41+
3342
err := http.ListenAndServe(config.ListenAddress, nil)
3443
if err != nil {
3544
log.Fatal(err)

0 commit comments

Comments
 (0)