mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-09 12:28:49 +03:00
13 lines
220 B
Go
13 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
|
||
|
}
|