mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-13 22:51:08 -05:00
12 lines
220 B
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
|
|
}
|