From 1ab8b37e7e54ec3434f050ca46abecd79ca5fb4f Mon Sep 17 00:00:00 2001 From: insomniac Date: Mon, 14 Aug 2017 21:51:18 +0100 Subject: [PATCH] Make CoreDNS build on Go 1.7 (#919) --- .travis.yml | 1 + middleware/kubernetes/apiproxy.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8deeadbe0..c6724f8aa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ services: language: go go: + - 1.7 - 1.8 go_import_path: github.com/coredns/coredns diff --git a/middleware/kubernetes/apiproxy.go b/middleware/kubernetes/apiproxy.go index 966e5753b..f6d2c00fa 100644 --- a/middleware/kubernetes/apiproxy.go +++ b/middleware/kubernetes/apiproxy.go @@ -72,5 +72,5 @@ func (p *apiProxy) Run() { func (p *apiProxy) Stop() { p.handler.Stop() - p.Close() + p.listener.Close() }