print listening message
This commit is contained in:
parent
af57bbad2b
commit
5859cdb097
4
main.go
4
main.go
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue