Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Merge branch '2.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
bboreham committed Sep 26, 2018
2 parents fc759e2 + 427e7a6 commit a73330f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ipam/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}

0 comments on commit a73330f

Please sign in to comment.