Skip to content

Commit

Permalink
web默认监听0.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RockJohnson503 committed Oct 15, 2020
1 parent 3ca12dd commit 2dbd80d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var webCmd = &cobra.Command{
}

func init() {
webCmd.Flags().StringVarP(&host, "host", "", "127.0.0.1", "web服务监听地址")
webCmd.Flags().StringVarP(&host, "host", "", "0.0.0.0", "web服务监听地址")
webCmd.Flags().IntVarP(&port, "port", "p", 80, "web服务启动端口")
webCmd.Flags().BoolVarP(&ssl, "ssl", "", false, "web服务是否以https方式运行")
rootCmd.AddCommand(webCmd)
Expand Down

0 comments on commit 2dbd80d

Please sign in to comment.