mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
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:
@@ -33,7 +33,7 @@ func (f *Forward) Forward(state request.Request) (*dns.Msg, error) {
|
||||
|
||||
ret, err := proxy.connect(context.Background(), state, f.forceTCP, true)
|
||||
|
||||
ret, err = truncated(ret, err)
|
||||
ret, err = truncated(state, ret, err)
|
||||
upstreamErr = err
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user