aboutsummaryrefslogtreecommitdiff
path: root/plugin/bind/bind.go
diff options
context:
space:
mode:
authorGravatar Mohammad Yosefpor <47300215+m-yosefpor@users.noreply.github.com> 2021-03-25 20:08:17 +0430
committerGravatar GitHub <noreply@github.com> 2021-03-25 16:38:17 +0100
commitea41dd23a01d653b01d153a868d586fac4d4381a (patch)
tree71d23d03aa3952e704e4e85564f3a8e668a0fba6 /plugin/bind/bind.go
parent5b9b079dabc7f71463cea3f0c6a92f338935039d (diff)
downloadcoredns-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/bind.go')
-rw-r--r--plugin/bind/bind.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/plugin/bind/bind.go b/plugin/bind/bind.go
index cfbd36597..cada8fa98 100644
--- a/plugin/bind/bind.go
+++ b/plugin/bind/bind.go
@@ -1,6 +1,17 @@
// Package bind allows binding to a specific interface instead of bind to all of them.
package bind
-import "github.com/coredns/coredns/plugin"
+import (
+ "github.com/coredns/coredns/plugin"
+)
func init() { plugin.Register("bind", setup) }
+
+type bind struct {
+ Next plugin.Handler
+ addrs []string
+ except []string
+}
+
+// Name implements plugin.Handler.
+func (b *bind) Name() string { return "bind" }