From b5f135b0d0955a3c7633ae253e6634cc296026bd Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Sat, 24 Dec 2016 22:19:19 +0100 Subject: [PATCH] pixiecore: Provide a default value for listen-addr flag (#24) Fixes google/netboot#20 --- pixiecore/cli/cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixiecore/cli/cli.go b/pixiecore/cli/cli.go index 9236b78..d0149eb 100644 --- a/pixiecore/cli/cli.go +++ b/pixiecore/cli/cli.go @@ -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")