mirror of
https://github.com/coredns/coredns.git
synced 2025-11-11 14:32:25 -05:00
Up to DNS version 1.1.0 (#2346)
Upgrade to new dns lib version; that saw multiple improvements; some patch releases are in the pipeline. The big thing here is the removal of ErrTruncated, so we need to deal with this slightly different in the forward plugin. It removed the entire truncated.go logic and just checks the message for .Truncated (if there is a message) and retries with tcp. Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
@@ -35,7 +35,6 @@ func (f *Forward) Forward(state request.Request) (*dns.Msg, error) {
|
||||
|
||||
ret, err := proxy.Connect(context.Background(), state, f.opts)
|
||||
|
||||
ret, err = truncated(state, ret, err)
|
||||
upstreamErr = err
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user