Commit 86edb15c authored by zhangguoyan's avatar zhangguoyan Committed by Miek Gieben

plugin/forward: fix a typo (#3133)

parent d36ca09c
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment