Skip to content

Commit

Permalink
fix huhu
Browse files Browse the repository at this point in the history
  • Loading branch information
vinhjaxt committed Nov 24, 2019
1 parent 8ec68b7 commit 11c48ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 11c48ef

Please sign in to comment.