diff --git a/api/router.go b/api/router.go index 1be395c..bb347de 100644 --- a/api/router.go +++ b/api/router.go @@ -21,7 +21,8 @@ func init() { if port == "" { port = "8888" } - h = hertz.NewHertz([]config.Option{server.WithHostPorts("0.0.0.0:" + port)}, []app.HandlerFunc{}) + + h = hertz.NewHertz([]config.Option{server.WithHostPorts(":" + port)}, []app.HandlerFunc{}) // cv api 状态客户端接口 h.Use(cors.Default())