API节点状态中增加主程序位置信息

This commit is contained in:
刘祥超
2022-07-21 15:23:08 +08:00
parent b4f77ddc63
commit 09d8ef00c2
2 changed files with 3 additions and 0 deletions

View File

@@ -58,6 +58,8 @@ func (this *NodeStatusExecutor) update() {
status.BuildVersionCode = utils.VersionToLong(teaconst.Version)
status.OS = runtime.GOOS
status.Arch = runtime.GOARCH
exe, _ := os.Executable()
status.ExePath = exe
status.ConfigVersion = 0
status.IsActive = true
status.ConnectionCount = 0 // TODO 实现连接数计算