caddy/config/setup/bindaddr.go

13 lines
220 B
Go
Raw Normal View History

package setup
import "github.com/mholt/caddy/middleware"
func BindAddr(c *Controller) (middleware.Middleware, error) {
for c.Next() {
if !c.Args(&c.BindAddress) {
return nil, c.ArgErr()
}
}
return nil, nil
}