plugin/forward: check TC correctly on reply. (#1670)

* plugin/forward: check TC correctly on reply.

Add test for this.

* Add proxy test as well
This commit is contained in:
Miek Gieben
2018-04-11 21:18:41 +01:00
committed by GitHub
parent 9ae9ee4b6b
commit 305ae9b9bc
4 changed files with 123 additions and 5 deletions

View File

@@ -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 {