diff --git a/client.go b/client.go index a51c3fd0..d5eac859 100644 --- a/client.go +++ b/client.go @@ -38,7 +38,7 @@ type Client struct { // // c := new(dns.Client) // in, rtt, err := c.Exchange(message, "127.0.0.1:53") -// +// func (c *Client) Exchange(m *Msg, a string) (r *Msg, rtt time.Duration, err error) { w := &reply{client: c, addr: a} if err = w.dial(); err != nil { @@ -63,13 +63,6 @@ func (c *Client) ExchangeConn(m *Msg, s net.Conn) (r *Msg, rtt time.Duration, er return r, w.rtt, err } -func (w *reply) RemoteAddr() net.Addr { - if w.conn != nil { - return w.conn.RemoteAddr() - } - return nil -} - // dial connects to the address addr for the network set in c.Net func (w *reply) dial() (err error) { var conn net.Conn