diff options
author | 2019-02-18 10:12:14 +0300 | |
---|---|---|
committer | 2019-02-18 07:12:14 +0000 | |
commit | 4651cc621dcf5c00bc7263c422beaef47a2e56ae (patch) | |
tree | 11a6e71ccc498156735919a985b45a002a635213 /plugin | |
parent | 6d2189201eda26b356654eb53ef0b6e3d282d7c7 (diff) | |
download | coredns-4651cc621dcf5c00bc7263c422beaef47a2e56ae.tar.gz coredns-4651cc621dcf5c00bc7263c422beaef47a2e56ae.tar.zst coredns-4651cc621dcf5c00bc7263c422beaef47a2e56ae.zip |
plugin/forward: fixed debug dump output on FORMERR (#2576)
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/forward/forward.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/forward/forward.go b/plugin/forward/forward.go index 66526509b..0b043e070 100644 --- a/plugin/forward/forward.go +++ b/plugin/forward/forward.go @@ -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. 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) w.WriteMsg(formerr) |