🎨 Add comments

This commit is contained in:
Daniel 2023-08-08 10:09:38 +08:00
parent c644dd2c8d
commit d1739ab757
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -79,6 +79,11 @@ func Serve(fastMode bool) {
serveRepoDiff(ginServer)
api.ServeAPI(ginServer)
// TODO 升级后结束旧内核进程
//if !fastMode && "prod" == util.Mode && util.ContainerStd == util.Container {
// killRunningKernel()
//}
var host string
if model.Conf.System.NetworkServe || util.ContainerDocker == util.Container {
host = "0.0.0.0"