plugin/forward: fix a typo (#3133)
This commit is contained in:
parent
d36ca09c97
commit
86edb15c27
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue