Check if container is still running right after allocating

This commit is contained in:
Bryan Boreham committed 2015-06-12 17:09:11 +01:00
1 parent 13944f3811
commit 4c01af4e1d
3 files changed
+26 -15

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ func listenHTTP(alloc *Allocator, subnet address.CIDR) int {
router.HandleFunc("/status", func(w http.ResponseWriter, r *http.Request) {
io.WriteString(w, fmt.Sprintln(alloc))
})
alloc.HandleHTTP(router, subnet)
alloc.HandleHTTP(router, subnet, nil)
httpListener, err := net.Listen("tcp", ":0")
if err != nil {