mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-30 22:34:15 -05:00
57f1d3c205
pass all tests respond to maintainer comments reinstate assignment of t correct typo correct typo pass linter some more
13 lines
268 B
Go
13 lines
268 B
Go
package setup
|
|
|
|
import "github.com/mholt/caddy/middleware"
|
|
|
|
// BindHost sets the host to bind the listener to.
|
|
func BindHost(c *Controller) (middleware.Middleware, error) {
|
|
for c.Next() {
|
|
if !c.Args(&c.BindHost) {
|
|
return nil, c.ArgErr()
|
|
}
|
|
}
|
|
return nil, nil
|
|
}
|