mirror of
https://github.com/coredns/coredns.git
synced 2025-11-09 05:26:21 -05:00
plugin/forward: Return original message on truncation (#1674)
With this change the original truncated message returned by requested server is returned to the client, instead of returning an empty dummy message with only the truncation bit set.
This commit is contained in:
committed by
Miek Gieben
parent
305ae9b9bc
commit
e671e22e65
@@ -66,7 +66,7 @@ func (p *Proxy) connect(ctx context.Context, state request.Request, forceTCP, me
|
||||
if err == io.EOF && cached {
|
||||
return nil, errCachedClosed
|
||||
}
|
||||
return nil, err
|
||||
return ret, err
|
||||
}
|
||||
|
||||
p.updateRtt(time.Since(reqTime))
|
||||
|
||||
Reference in New Issue
Block a user