caddy/config/setup/bindhost.go

13 lines
217 B
Go
Raw Normal View History

package setup
import "github.com/mholt/caddy/middleware"
2015-05-05 13:58:08 +08:00
func BindHost(c *Controller) (middleware.Middleware, error) {
for c.Next() {
2015-05-05 13:58:08 +08:00
if !c.Args(&c.BindHost) {
return nil, c.ArgErr()
}
}
return nil, nil
}