mirror of
https://github.com/danderson/netboot.git
synced 2025-12-02 16:11:58 +01:00
pixiecore: Provide a default value for listen-addr flag (#24)
Fixes google/netboot#20
This commit is contained in:
parent
5215003867
commit
b5f135b0d0
@ -70,7 +70,7 @@ func todo(msg string, args ...interface{}) {
|
|||||||
func serverConfigFlags(cmd *cobra.Command) {
|
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("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().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().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().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")
|
cmd.Flags().Bool("dhcp-no-bind", false, "Handle DHCP traffic without binding to the DHCP server port")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user