mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 02:03:13 -05:00
plugin/forward: add prefer_udp option (#1944)
* plugin/forward: add prefer_udp option * updated according to code review - fixed linter warning - removed metric parameter in Proxy.Connect()
This commit is contained in:
committed by
Miek Gieben
parent
7c41f2ce9f
commit
bc50901234
@@ -32,7 +32,7 @@ func (f *Forward) Forward(state request.Request) (*dns.Msg, error) {
|
||||
proxy = f.List()[0]
|
||||
}
|
||||
|
||||
ret, err := proxy.Connect(context.Background(), state, f.forceTCP, true)
|
||||
ret, err := proxy.Connect(context.Background(), state, f.opts)
|
||||
|
||||
ret, err = truncated(state, ret, err)
|
||||
upstreamErr = err
|
||||
|
||||
Reference in New Issue
Block a user