diff options
author | 2021-03-25 20:08:17 +0430 | |
---|---|---|
committer | 2021-03-25 16:38:17 +0100 | |
commit | ea41dd23a01d653b01d153a868d586fac4d4381a (patch) | |
tree | 71d23d03aa3952e704e4e85564f3a8e668a0fba6 /plugin/bind/setup_test.go | |
parent | 5b9b079dabc7f71463cea3f0c6a92f338935039d (diff) | |
download | coredns-ea41dd23a01d653b01d153a868d586fac4d4381a.tar.gz coredns-ea41dd23a01d653b01d153a868d586fac4d4381a.tar.zst coredns-ea41dd23a01d653b01d153a868d586fac4d4381a.zip |
plugin/bind: exclude interface or ip address (#4543)
* plugin/bind: exclude interface or ip address
Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>
* fix README.md
Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>
* Apply suggestions, Fix test
Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>
* Apply suggestions, move errs to setup
Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>
Diffstat (limited to 'plugin/bind/setup_test.go')
-rw-r--r-- | plugin/bind/setup_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/bind/setup_test.go b/plugin/bind/setup_test.go index b0cf1087b..e8c87b8fe 100644 --- a/plugin/bind/setup_test.go +++ b/plugin/bind/setup_test.go @@ -20,6 +20,7 @@ func TestSetup(t *testing.T) { {`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}, + {"bind lo {\nexcept 127.0.0.1\n}\n", []string{"::1"}, false}, } { c := caddy.NewTestController("dns", test.config) err := setup(c) |