plugin/forward: fixed debug dump output on FORMERR (#2576)
This commit is contained in:
parent
6d2189201e
commit
4651cc621d
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ func (f *Forward) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg
|
||||||
|
|
||||||
// Check if the reply is correct; if not return FormErr.
|
// Check if the reply is correct; if not return FormErr.
|
||||||
if !state.Match(ret) {
|
if !state.Match(ret) {
|
||||||
debug.Hexdumpf(ret, "Wrong reply for id: %d, %s/%d", state.QName(), state.QType())
|
debug.Hexdumpf(ret, "Wrong reply for id: %d, %s %d", ret.Id, state.QName(), state.QType())
|
||||||
|
|
||||||
formerr := state.ErrorMessage(dns.RcodeFormatError)
|
formerr := state.ErrorMessage(dns.RcodeFormatError)
|
||||||
w.WriteMsg(formerr)
|
w.WriteMsg(formerr)
|
||||||
|
|
Loading…
Add table
Reference in a new issue