mirror of https://github.com/docker/docs.git
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
bb4db048ec
commit
b0293f8767
|
|
@ -112,5 +112,10 @@ func manage(c *cli.Context) {
|
|||
},
|
||||
)
|
||||
|
||||
log.Fatal(api.ListenAndServe(cluster, sched, c.StringSlice("host"), c.App.Version, c.Bool("cors"), tlsConfig))
|
||||
// see https://github.com/codegangsta/cli/issues/160
|
||||
hosts := c.StringSlice("host")
|
||||
if c.IsSet("host") || c.IsSet("H") {
|
||||
hosts = hosts[1:]
|
||||
}
|
||||
log.Fatal(api.ListenAndServe(cluster, sched, hosts, c.App.Version, c.Bool("cors"), tlsConfig))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue