s/StatusPort/HttpPort
since we are adding functionality other than status
This commit is contained in:
1 parent
d8bea832d3
commit
acbabc4f9e
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -141,7 +141,7 @@ func handleHttp(router *weave.Router) {
|
||||
http.HandleFunc("/status", func(w http.ResponseWriter, r *http.Request) {
|
||||
io.WriteString(w, router.Status())
|
||||
})
|
||||
address := fmt.Sprintf(":%d", weave.StatusPort)
|
||||
address := fmt.Sprintf(":%d", weave.HttpPort)
|
||||
err := http.ListenAndServe(address, nil)
|
||||
if err != nil {
|
||||
log.Fatal("Unable to create http listener: ", err)
|
||||
|
||||
Reference in new issue
Block a user