print listening message

This commit is contained in:
Fabricio 2017-11-18 10:23:36 -02:00
parent af57bbad2b
commit 5859cdb097

View file

@ -3,6 +3,7 @@ package main
import ( import (
"bytes" "bytes"
"compress/gzip" "compress/gzip"
"fmt"
"io" "io"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
@ -28,6 +29,9 @@ func main() {
http.Handle("/", getProxyHandler(proxy)) http.Handle("/", getProxyHandler(proxy))
http.Handle("/socket.io/", getSocketHandler()) http.Handle("/socket.io/", getSocketHandler())
http.Handle("/"+dashboard+"/", getDashboardHandler()) http.Handle("/"+dashboard+"/", getDashboardHandler())
fmt.Printf("\nListening on http://localhost:%s\n\n", proxyPort)
http.ListenAndServe(":"+proxyPort, nil) http.ListenAndServe(":"+proxyPort, nil)
} }