Pass checkAlive flag through as isContainer in Allocate

This commit is contained in:
Bryan Boreham committed 2016-04-18 10:16:54 +01:00
1 parent 984ba8a377
commit 2b159b0c75
4 files changed
+40 -33

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@ func writeAddresses(w http.ResponseWriter, cidrs []address.CIDR) {
func (alloc *Allocator) handleHTTPAllocate(dockerCli *docker.Client, w http.ResponseWriter, ident string, checkAlive bool, subnet address.CIDR) {
closedChan := w.(http.CloseNotifier).CloseNotify()
addr, err := alloc.Allocate(ident, subnet,
addr, err := alloc.Allocate(ident, subnet, checkAlive,
func() bool {
select {
case <-closedChan: