Skip to content

Commit

Permalink
use new ExchangeWithConnContext method
Browse files Browse the repository at this point in the history
  • Loading branch information
ydnar committed Jun 22, 2023
1 parent f408b9a commit f6586e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ func (r *Resolver) exchangeIP(ctx context.Context, host, ip, qname, qtype string
var dur time.Duration
if err == nil {
dconn := &dns.Conn{Conn: conn}
rmsg, dur, err = client.ExchangeWithConn(&qmsg, dconn)
rmsg, dur, err = client.ExchangeWithConnContext(ctx, &qmsg, dconn)
conn.Close()
}

Expand Down

0 comments on commit f6586e3

Please sign in to comment.