mirror of
https://github.com/snowykami/server-status-server.git
synced 2025-06-07 15:45:23 +00:00
🐛 添加构建工作流
This commit is contained in:
parent
7059889ebf
commit
e915b5cb85
@ -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())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user