Merge branch '2.4'

This commit is contained in:
Bryan Boreham committed 2018-09-26 10:20:04 +01:00
commit a73330f752
1 file changed
+5 -1
+5 -1
View File
@@ -199,6 +199,10 @@ func (alloc *Allocator) HandleHTTP(router *mux.Router, defaultSubnet address.CID
})
router.Methods("GET").Path("/ipinfo/tracker").HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, alloc.tracker.String())
tracker := ""
if alloc.tracker != nil {
tracker = alloc.tracker.String()
}
fmt.Fprintf(w, tracker)
})
}