diff --git a/client.go b/client.go index 02fb1b0f..572f9b6d 100644 --- a/client.go +++ b/client.go @@ -58,10 +58,10 @@ func Exchange(m *Msg, a string) (r *Msg, err error) { // c and waits for a reply. The connection c is not closed by ExchangeConn. // This function is going away, but can easily be mimicked: // -// co := new(dns.Conn) -// co.Conn = c // c is your net.Conn +// co := &dns.Conn{Conn: c} // c is your net.Conn // co.WriteMsg(m) // in, _ := co.ReadMsg() +// co.Close() // func ExchangeConn(c net.Conn, m *Msg) (r *Msg, err error) { println("dns: this function is deprecated")