From acbabc4f9e4e01ece31421b203522523896a905c Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Mon, 27 Oct 2014 08:22:22 +0000 Subject: [PATCH] s/StatusPort/HttpPort since we are adding functionality other than status --- router/consts.go | 2 +- weaver/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/router/consts.go b/router/consts.go index 2d851dfb..02a93edf 100644 --- a/router/consts.go +++ b/router/consts.go @@ -11,7 +11,7 @@ const ( EthernetOverhead = 14 UDPOverhead = 28 // 20 bytes for IPv4, 8 bytes for UDP Port = 6783 - StatusPort = Port + 1 + HttpPort = Port + 1 DefaultPMTU = 65535 MaxUDPPacketSize = 65536 ChannelSize = 16 diff --git a/weaver/main.go b/weaver/main.go index 7bb0c416..523a5429 100644 --- a/weaver/main.go +++ b/weaver/main.go @@ -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)