1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00
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

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