0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-13 22:51:08 -05:00
caddy/config/setup/bindaddr.go

12 lines
220 B
Go

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
}