This commit is contained in:
Bryan Boreham committed 2014-09-12 18:04:18 +01:00
1 parent 21bec9fc78
commit 9be3a11e10
1 file changed
+2 -2
+2 -2
View File
@@ -18,7 +18,7 @@ import (
"time" "time"
) )
var builddate string // set by the Makefile var builddate string // set by the Makefile
func versionString() string { func versionString() string {
return "Weave of " + builddate return "Weave of " + builddate
@@ -152,7 +152,7 @@ func handleHttp(router *weave.Router) {
io.WriteString(w, router.Status()) io.WriteString(w, router.Status())
}) })
http.HandleFunc("/version", func(w http.ResponseWriter, r *http.Request) { http.HandleFunc("/version", func(w http.ResponseWriter, r *http.Request) {
io.WriteString(w, versionString() + "\n") io.WriteString(w, versionString()+"\n")
}) })
address := fmt.Sprintf(":%d", weave.StatusPort) address := fmt.Sprintf(":%d", weave.StatusPort)
err := http.ListenAndServe(address, nil) err := http.ListenAndServe(address, nil)