by Robin at 20240523

This commit is contained in:
Leufolium 2024-05-23 23:01:30 +08:00
parent 124dd84c83
commit ffececc65a
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ func main() {
validator.InitDefaultNotNullValidator() validator.InitDefaultNotNullValidator()
controller.InitOffline(router) controller.InitOffline(router)
srv := &http.Server{ srv := &http.Server{
Addr: fmt.Sprintf("%s:%d", GetIp(), cfg.App.Port), Addr: fmt.Sprintf("%s:%d", GetIp(), cfg.OfflineServer.App.Port),
Handler: router, Handler: router,
} }
httpserver.StartHttpServer(srv, cfg.OfflineServer) httpserver.StartHttpServer(srv, cfg.OfflineServer)