From 5859cdb097473195f9e72602f93271416decb50f Mon Sep 17 00:00:00 2001 From: Fabricio Date: Sat, 18 Nov 2017 10:23:36 -0200 Subject: [PATCH] print listening message --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index d98585d..7df0503 100644 --- a/main.go +++ b/main.go @@ -3,6 +3,7 @@ package main import ( "bytes" "compress/gzip" + "fmt" "io" "io/ioutil" "net/http" @@ -28,6 +29,9 @@ func main() { http.Handle("/", getProxyHandler(proxy)) http.Handle("/socket.io/", getSocketHandler()) http.Handle("/"+dashboard+"/", getDashboardHandler()) + + fmt.Printf("\nListening on http://localhost:%s\n\n", proxyPort) + http.ListenAndServe(":"+proxyPort, nil) }