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() }