aboutsummaryrefslogtreecommitdiff
path: root/plugin/bind/setup_test.go
diff options
context:
space:
mode:
authorGravatar Mohammad Yosefpor <47300215+m-yosefpor@users.noreply.github.com> 2021-03-18 10:08:48 +0330
committerGravatar GitHub <noreply@github.com> 2021-03-18 07:38:48 +0100
commit61b5cdb3526649fcc3356c71342a057f472a9985 (patch)
tree89461089a171f88b73ca8da1af1a6c3af533146d /plugin/bind/setup_test.go
parent5457cdcd4b2a37cdb6fa2e876dfe4b378c2f1fed (diff)
downloadcoredns-61b5cdb3526649fcc3356c71342a057f472a9985.tar.gz
coredns-61b5cdb3526649fcc3356c71342a057f472a9985.tar.zst
coredns-61b5cdb3526649fcc3356c71342a057f472a9985.zip
plugin/bind: Bind by interface name (#4522)
* auto make -f Makefile.doc Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com> * Bind by interface name Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com> * README.md: Interface with multiple address Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com> * auto make -f Makefile.doc Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com> * auto make -f Makefile.doc Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com> * Elaborate more on the behaviour in README.md, revert man/*, fix tests Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com> * auto make -f Makefile.doc Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com> * --sign-off Revert man/* to fix DCO check Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com> * auto make -f Makefile.doc * Revert man/* to fix DCO check Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com> Co-authored-by: coredns-auto-go-mod-tidy[bot] <coredns-auto-go-mod-tidy[bot]@users.noreply.github.com>
Diffstat (limited to 'plugin/bind/setup_test.go')
-rw-r--r--plugin/bind/setup_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/bind/setup_test.go b/plugin/bind/setup_test.go
index 556aa1ea2..b0cf1087b 100644
--- a/plugin/bind/setup_test.go
+++ b/plugin/bind/setup_test.go
@@ -19,6 +19,7 @@ func TestSetup(t *testing.T) {
{`bind 1.2.3.4 ::5`, []string{"1.2.3.4", "::5"}, false},
{`bind ::1 1.2.3.4 ::5 127.9.9.0`, []string{"::1", "1.2.3.4", "::5", "127.9.9.0"}, false},
{`bind ::1 1.2.3.4 ::5 127.9.9.0 noone`, nil, true},
+ {`bind 1.2.3.4 lo`, []string{"1.2.3.4", "127.0.0.1", "::1"}, false},
} {
c := caddy.NewTestController("dns", test.config)
err := setup(c)