aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Catena cyber <35799796+catenacyber@users.noreply.github.com> 2023-05-25 15:09:56 +0200
committerGravatar GitHub <noreply@github.com> 2023-05-25 09:09:56 -0400
commit31ff926ea10a907bb3092d4f1df6d28d99302574 (patch)
tree21d1ff14c81b2e438b29c0a4326150b9ad83166b
parent21fe7eaa3537101478237ce90e2db086fc348c0d (diff)
downloadcoredns-31ff926ea10a907bb3092d4f1df6d28d99302574.tar.gz
coredns-31ff926ea10a907bb3092d4f1df6d28d99302574.tar.zst
coredns-31ff926ea10a907bb3092d4f1df6d28d99302574.zip
fuzz: fix forward plugin target (#6115)
Signed-off-by: Philippe Antoine <contact@catenacyber.fr>
-rw-r--r--plugin/forward/fuzz.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin/forward/fuzz.go b/plugin/forward/fuzz.go
index bec573e47..ba6e9155d 100644
--- a/plugin/forward/fuzz.go
+++ b/plugin/forward/fuzz.go
@@ -5,6 +5,7 @@ package forward
import (
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/pkg/fuzz"
+ "github.com/coredns/coredns/plugin/pkg/proxy"
"github.com/miekg/dns"
)
@@ -16,8 +17,8 @@ var f *Forward
func init() {
f = New()
s := dnstest.NewServer(r{}.reflectHandler)
- f.SetProxy(NewProxy(s.Addr, "tcp"))
- f.SetProxy(NewProxy(s.Addr, "udp"))
+ f.SetProxy(proxy.NewProxy(s.Addr, "tcp"))
+ f.SetProxy(proxy.NewProxy(s.Addr, "udp"))
}
// Fuzz fuzzes forward.