From 11c48ef76025180f0484c01579e349780312c056 Mon Sep 17 00:00:00 2001 From: Vinh Duong Date: Mon, 25 Nov 2019 00:41:38 +0700 Subject: [PATCH] fix huhu --- dns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns.go b/dns.go index df447d8..c75a65d 100644 --- a/dns.go +++ b/dns.go @@ -47,8 +47,8 @@ func getUsableIP(hostname, port string) (string, error) { continue } conn, err := httpsDialer.Dial("tcp", "["+ip+"]:"+port) - conn.Close() if err == nil { + conn.Close() return ip, nil } }