Close test upstream

This commit is contained in:
Andrey Meshkov 2018-11-06 00:52:27 +03:00
parent 451922b858
commit 2e879896ff

View file

@ -218,6 +218,7 @@ func checkDNS(input string) error {
if err != nil {
return err
}
defer u.Close()
alive, err := upstream.IsAlive(u)