From 2e879896ff08220407f0530eaa814db3d61f9552 Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Tue, 6 Nov 2018 00:52:27 +0300 Subject: [PATCH] Close test upstream --- control.go | 1 + 1 file changed, 1 insertion(+) diff --git a/control.go b/control.go index 238bc131..63a387b0 100644 --- a/control.go +++ b/control.go @@ -218,6 +218,7 @@ func checkDNS(input string) error { if err != nil { return err } + defer u.Close() alive, err := upstream.IsAlive(u)