From 03afb54cddc4545e43d86fa0af8e677dd37a0494 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Fri, 29 Apr 2016 10:03:23 +0100 Subject: [PATCH] remove cruft --- prog/weaver/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prog/weaver/main.go b/prog/weaver/main.go index 6982d78d..816afacc 100644 --- a/prog/weaver/main.go +++ b/prog/weaver/main.go @@ -337,7 +337,7 @@ func main() { HandleHTTP(muxRouter, version, router, allocator, defaultSubnet, ns, dnsserver) http.Handle("/", muxRouter) Log.Println("Listening for HTTP control messages on", httpAddr) - go listenAndServeHTTP(httpAddr, muxRouter) + go listenAndServeHTTP(httpAddr) } common.SignalHandlerLoop(router) @@ -550,7 +550,7 @@ func parsePeerNames(s string) ([]mesh.PeerName, error) { return peerNames, nil } -func listenAndServeHTTP(httpAddr string, muxRouter *mux.Router) { +func listenAndServeHTTP(httpAddr string) { protocol := "tcp" if strings.HasPrefix(httpAddr, "/") { os.Remove(httpAddr) // in case it's there from last time