Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
Victor Vieux 2014-12-16 01:54:15 +00:00
parent bb4db048ec
commit b0293f8767
1 changed files with 6 additions and 1 deletions

View File

@ -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))
}