mirror of
https://github.com/coredns/coredns.git
synced 2025-11-15 00:12:16 -05:00
First commit
This commit is contained in:
13
core/setup/bindhost.go
Normal file
13
core/setup/bindhost.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package setup
|
||||
|
||||
import "github.com/miekg/coredns/middleware"
|
||||
|
||||
// BindHost sets the host to bind the listener to.
|
||||
func BindHost(c *Controller) (middleware.Middleware, error) {
|
||||
for c.Next() {
|
||||
if !c.Args(&c.BindHost) {
|
||||
return nil, c.ArgErr()
|
||||
}
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
Reference in New Issue
Block a user