mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
plugin/forward: Enable multiple forward declarations (#5127)
* enable multiple declarations of forward plugin Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
@@ -23,7 +23,8 @@ func TestProxy(t *testing.T) {
|
||||
defer s.Close()
|
||||
|
||||
c := caddy.NewTestController("dns", "forward . "+s.Addr)
|
||||
f, err := parseForward(c)
|
||||
fs, err := parseForward(c)
|
||||
f := fs[0]
|
||||
if err != nil {
|
||||
t.Errorf("Failed to create forwarder: %s", err)
|
||||
}
|
||||
@@ -53,7 +54,8 @@ func TestProxyTLSFail(t *testing.T) {
|
||||
defer s.Close()
|
||||
|
||||
c := caddy.NewTestController("dns", "forward . tls://"+s.Addr)
|
||||
f, err := parseForward(c)
|
||||
fs, err := parseForward(c)
|
||||
f := fs[0]
|
||||
if err != nil {
|
||||
t.Errorf("Failed to create forwarder: %s", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user