aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorGravatar zhangguoyan <zhangguoyanbupt@gmail.com> 2019-08-17 00:34:12 +0800
committerGravatar Miek Gieben <miek@miek.nl> 2019-08-16 16:34:12 +0000
commit86edb15c279029685786288cb433b730e50553fb (patch)
treef629c0a7d8bb467841d1cb38800b88176027fbf0 /plugin
parentd36ca09c976cc96091b1c3e9f4b6e7a29a83ad15 (diff)
downloadcoredns-86edb15c279029685786288cb433b730e50553fb.tar.gz
coredns-86edb15c279029685786288cb433b730e50553fb.tar.zst
coredns-86edb15c279029685786288cb433b730e50553fb.zip
plugin/forward: fix a typo (#3133)
Diffstat (limited to 'plugin')
-rw-r--r--plugin/forward/forward.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/forward/forward.go b/plugin/forward/forward.go
index 9d37780da..da2b2beb4 100644
--- a/plugin/forward/forward.go
+++ b/plugin/forward/forward.go
@@ -113,7 +113,7 @@ func (f *Forward) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg
continue
}
// Retry with TCP if truncated and prefer_udp configured.
- if ret != nil && ret.Truncated && !opts.forceTCP && f.opts.preferUDP {
+ if ret != nil && ret.Truncated && !opts.forceTCP && opts.preferUDP {
opts.forceTCP = true
continue
}