mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
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:
@@ -16,8 +16,8 @@ var f *Forward
|
||||
func init() {
|
||||
f = New()
|
||||
s := dnstest.NewServer(r{}.reflectHandler)
|
||||
f.proxies = append(f.proxies, NewProxy(s.Addr, "tcp"))
|
||||
f.proxies = append(f.proxies, NewProxy(s.Addr, "udp"))
|
||||
f.SetProxy(NewProxy(s.Addr, "tcp"))
|
||||
f.SetProxy(NewProxy(s.Addr, "udp"))
|
||||
}
|
||||
|
||||
// Fuzz fuzzes forward.
|
||||
|
||||
Reference in New Issue
Block a user