remove cruft
This commit is contained in:
1 parent
50e114863d
commit
03afb54cdd
1 file changed
+2
-2
+2
-2
@@ -337,7 +337,7 @@ func main() {
|
|||||||
HandleHTTP(muxRouter, version, router, allocator, defaultSubnet, ns, dnsserver)
|
HandleHTTP(muxRouter, version, router, allocator, defaultSubnet, ns, dnsserver)
|
||||||
http.Handle("/", muxRouter)
|
http.Handle("/", muxRouter)
|
||||||
Log.Println("Listening for HTTP control messages on", httpAddr)
|
Log.Println("Listening for HTTP control messages on", httpAddr)
|
||||||
go listenAndServeHTTP(httpAddr, muxRouter)
|
go listenAndServeHTTP(httpAddr)
|
||||||
}
|
}
|
||||||
|
|
||||||
common.SignalHandlerLoop(router)
|
common.SignalHandlerLoop(router)
|
||||||
@@ -550,7 +550,7 @@ func parsePeerNames(s string) ([]mesh.PeerName, error) {
|
|||||||
return peerNames, nil
|
return peerNames, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func listenAndServeHTTP(httpAddr string, muxRouter *mux.Router) {
|
func listenAndServeHTTP(httpAddr string) {
|
||||||
protocol := "tcp"
|
protocol := "tcp"
|
||||||
if strings.HasPrefix(httpAddr, "/") {
|
if strings.HasPrefix(httpAddr, "/") {
|
||||||
os.Remove(httpAddr) // in case it's there from last time
|
os.Remove(httpAddr) // in case it's there from last time
|
||||||
|
|||||||
Reference in new issue
Block a user