aboutsummaryrefslogtreecommitdiff
path: root/plugin/forward/proxy_test.go
diff options
context:
space:
mode:
authorGravatar Chris O'Haver <cohaver@infoblox.com> 2022-07-20 10:35:04 -0400
committerGravatar GitHub <noreply@github.com> 2022-07-20 10:35:04 -0400
commit513f27b9a95c4eefc2d16b785c1349e9f32a3ce6 (patch)
tree34e749d0b1d90f433af299d6526bd8ec678e16a2 /plugin/forward/proxy_test.go
parent11059dd855d2644facd3afd0f46a14c70201d1c1 (diff)
downloadcoredns-513f27b9a95c4eefc2d16b785c1349e9f32a3ce6.tar.gz
coredns-513f27b9a95c4eefc2d16b785c1349e9f32a3ce6.tar.zst
coredns-513f27b9a95c4eefc2d16b785c1349e9f32a3ce6.zip
plugin/forward: Enable multiple forward declarations (#5127)
* enable multiple declarations of forward plugin Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
Diffstat (limited to 'plugin/forward/proxy_test.go')
-rw-r--r--plugin/forward/proxy_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugin/forward/proxy_test.go b/plugin/forward/proxy_test.go
index dc1f5fb18..74a0b5c4b 100644
--- a/plugin/forward/proxy_test.go
+++ b/plugin/forward/proxy_test.go
@@ -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)
}