pixiecore: Provide a default value for listen-addr flag (#24)

Fixes google/netboot#20
This commit is contained in:
pancho horrillo 2016-12-24 22:19:19 +01:00 committed by Dave Anderson
parent 5215003867
commit b5f135b0d0

View File

@ -70,7 +70,7 @@ func todo(msg string, args ...interface{}) {
func serverConfigFlags(cmd *cobra.Command) {
cmd.Flags().BoolP("debug", "d", false, "Log more things that aren't directly related to booting a recognized client")
cmd.Flags().BoolP("log-timestamps", "t", false, "Add a timestamp to each log line")
cmd.Flags().StringP("listen-addr", "l", "", "IPv4 address to listen on")
cmd.Flags().StringP("listen-addr", "l", "0.0.0.0", "IPv4 address to listen on")
cmd.Flags().IntP("port", "p", 80, "Port to listen on for HTTP")
cmd.Flags().Int("status-port", 0, "HTTP port for status information (can be the same as --port)")
cmd.Flags().Bool("dhcp-no-bind", false, "Handle DHCP traffic without binding to the DHCP server port")