Fix plugin forward fuzz target (#3877)

using new method to start proxies

Signed-off-by: Philippe Antoine <contact@catenacyber.fr>
This commit is contained in:
Catena cyber
2020-05-07 10:24:00 +02:00
committed by GitHub
parent 5897a7c03d
commit 886cdd9dd3

View File

@@ -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.