Commit 886cdd9d authored by Catena cyber's avatar Catena cyber Committed by GitHub

Fix plugin forward fuzz target (#3877)

using new method to start proxies
Signed-off-by: default avatarPhilippe Antoine <contact@catenacyber.fr>
parent 5897a7c0
...@@ -16,8 +16,8 @@ var f *Forward ...@@ -16,8 +16,8 @@ var f *Forward
func init() { func init() {
f = New() f = New()
s := dnstest.NewServer(r{}.reflectHandler) s := dnstest.NewServer(r{}.reflectHandler)
f.proxies = append(f.proxies, NewProxy(s.Addr, "tcp")) f.SetProxy(NewProxy(s.Addr, "tcp"))
f.proxies = append(f.proxies, NewProxy(s.Addr, "udp")) f.SetProxy(NewProxy(s.Addr, "udp"))
} }
// Fuzz fuzzes forward. // Fuzz fuzzes forward.
......
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