更新:1、依赖升级

2、module 名称地址
This commit is contained in:
2025-10-06 00:46:51 +08:00
parent 978a268f93
commit 44d4fcdbc4
11 changed files with 402 additions and 325 deletions

11
main.go
View File

@@ -5,10 +5,11 @@ import (
"fmt"
"log"
"os"
"zhub/cmd"
"zhub/internal/config"
"zhub/internal/monitor"
"zhub/internal/zbus"
"gitea.1216.top/lxy/zhub/cmd"
"gitea.1216.top/lxy/zhub/internal/config"
"gitea.1216.top/lxy/zhub/internal/monitor"
"gitea.1216.top/lxy/zhub/internal/zbus"
)
func main() {
@@ -69,7 +70,7 @@ func main() {
return
}
if *isCliMode {
cmd.ClientRun(addr) // 客户端运行
//cmd.ClientRun(addr) // 客户端运行
} else {
go monitor.StartWatch() // 启动监控协程
zbus.StartServer(addr, conf) // 启动服务进程