Skip to content

Commit

Permalink
upstream: clone req
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Apr 11, 2023
1 parent b5ed387 commit 76dd0bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions upstream/parallel.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ func exchangeAsync(u Upstream, req *dns.Msg, respCh chan *exchangeResult) {
// exchangeAndLog wraps the [Upstream.Exchange] method with logging.
func exchangeAndLog(u Upstream, req *dns.Msg) (resp *dns.Msg, err error) {
addr := u.Address()
req = req.Copy()

start := time.Now()
reply, err := u.Exchange(req)
Expand Down

0 comments on commit 76dd0bd

Please sign in to comment.