fuzz: fix forward plugin target (#6115)
Signed-off-by: Philippe Antoine <contact@catenacyber.fr>
This commit is contained in:
parent
21fe7eaa35
commit
31ff926ea1
1 changed files with 3 additions and 2 deletions
|
@ -5,6 +5,7 @@ package forward
|
||||||
import (
|
import (
|
||||||
"github.com/coredns/coredns/plugin/pkg/dnstest"
|
"github.com/coredns/coredns/plugin/pkg/dnstest"
|
||||||
"github.com/coredns/coredns/plugin/pkg/fuzz"
|
"github.com/coredns/coredns/plugin/pkg/fuzz"
|
||||||
|
"github.com/coredns/coredns/plugin/pkg/proxy"
|
||||||
|
|
||||||
"github.com/miekg/dns"
|
"github.com/miekg/dns"
|
||||||
)
|
)
|
||||||
|
@ -16,8 +17,8 @@ var f *Forward
|
||||||
func init() {
|
func init() {
|
||||||
f = New()
|
f = New()
|
||||||
s := dnstest.NewServer(r{}.reflectHandler)
|
s := dnstest.NewServer(r{}.reflectHandler)
|
||||||
f.SetProxy(NewProxy(s.Addr, "tcp"))
|
f.SetProxy(proxy.NewProxy(s.Addr, "tcp"))
|
||||||
f.SetProxy(NewProxy(s.Addr, "udp"))
|
f.SetProxy(proxy.NewProxy(s.Addr, "udp"))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fuzz fuzzes forward.
|
// Fuzz fuzzes forward.
|
||||||
|
|
Loading…
Add table
Reference in a new issue