Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jinliming2 committed Aug 14, 2020
1 parent 3214a8d commit 37126d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/resolver/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,7 @@ func (client *TLSDNSClient) Resolve(request *dns.Msg, useTCP bool) (*dns.Msg, er
if err != nil {
return getEmptyErrorResponse(request), fmt.Errorf("Failed to resolve %s using %s", request.Question[0].Name, client.String())
}
// https://github.com/miekg/dns/issues/1145
res.Id = request.Id
return res, nil
}
2 changes: 2 additions & 0 deletions client/resolver/traditional.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,7 @@ func (client *TraditionalDNSClient) Resolve(request *dns.Msg, useTCP bool) (*dns
if err != nil {
return getEmptyErrorResponse(request), fmt.Errorf("Failed to resolve %s using %s", request.Question[0].Name, client.String())
}
// https://github.com/miekg/dns/issues/1145
res.Id = request.Id
return res, nil
}

0 comments on commit 37126d4

Please sign in to comment.