mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-24 07:45:08 +08:00
13 lines
217 B
Go
13 lines
217 B
Go
package setup
|
|
|
|
import "github.com/mholt/caddy/middleware"
|
|
|
|
func BindHost(c *Controller) (middleware.Middleware, error) {
|
|
for c.Next() {
|
|
if !c.Args(&c.BindHost) {
|
|
return nil, c.ArgErr()
|
|
}
|
|
}
|
|
return nil, nil
|
|
}
|