diff options
author | 2018-04-11 21:18:41 +0100 | |
---|---|---|
committer | 2018-04-11 21:18:41 +0100 | |
commit | 305ae9b9bcade8c1a7b58b091b6fa2accf455a77 (patch) | |
tree | ead1e8dcf0f94e1035113e64cdc468bfec009c59 /plugin/forward/forward.go | |
parent | 9ae9ee4b6b9bfec6a349f5f0e7db5fe7620f6462 (diff) | |
download | coredns-305ae9b9bcade8c1a7b58b091b6fa2accf455a77.tar.gz coredns-305ae9b9bcade8c1a7b58b091b6fa2accf455a77.tar.zst coredns-305ae9b9bcade8c1a7b58b091b6fa2accf455a77.zip |
plugin/forward: check TC correctly on reply. (#1670)
* plugin/forward: check TC correctly on reply.
Add test for this.
* Add proxy test as well
Diffstat (limited to 'plugin/forward/forward.go')
-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 ba251d9ea..8a65dad3e 100644 --- a/plugin/forward/forward.go +++ b/plugin/forward/forward.go @@ -114,7 +114,7 @@ func (f *Forward) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg child.Finish() } - ret, err = truncated(ret, err) + ret, err = truncated(state, ret, err) upstreamErr = err if err != nil { |