mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
fix agent connect
This commit is contained in:
@@ -23,7 +23,7 @@ import (
|
||||
"github.com/naiba/nezha/service/singleton"
|
||||
)
|
||||
|
||||
func ServeWeb() *http.Server {
|
||||
func ServeWeb() http.Handler {
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
r := gin.Default()
|
||||
docs.SwaggerInfo.BasePath = "/api/v1"
|
||||
@@ -39,10 +39,7 @@ func ServeWeb() *http.Server {
|
||||
r.Use(recordPath)
|
||||
routers(r)
|
||||
|
||||
return &http.Server{
|
||||
ReadHeaderTimeout: time.Second * 5,
|
||||
Handler: r,
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
||||
func routers(r *gin.Engine) {
|
||||
|
||||
Reference in New Issue
Block a user