mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 01:34:21 -04:00 
			
		
		
		
	* 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>
		
			
				
	
	
		
			18 lines
		
	
	
		
			359 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			359 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Package bind allows binding to a specific interface instead of bind to all of them.
 | |
| package bind
 | |
| 
 | |
| 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" }
 |